diff --git a/ui/app/components/app/app-header/index.scss b/ui/app/components/app/app-header/index.scss index 0ea1793ca..f93e6f600 100644 --- a/ui/app/components/app/app-header/index.scss +++ b/ui/app/components/app/app-header/index.scss @@ -30,8 +30,6 @@ } &__metafox-logo { - cursor: pointer; - &--icon { height: 32px; @media screen and (min-width: $break-large) { @@ -72,8 +70,11 @@ display: flex; flex-direction: row; align-items: center; - cursor: pointer; flex: 0 0 auto; + + &--clickable { + cursor: pointer; + } } &__account-menu-container { diff --git a/ui/app/components/ui/metafox-logo/metafox-logo.component.js b/ui/app/components/ui/metafox-logo/metafox-logo.component.js index 041e354ef..4b1509c6e 100644 --- a/ui/app/components/ui/metafox-logo/metafox-logo.component.js +++ b/ui/app/components/ui/metafox-logo/metafox-logo.component.js @@ -1,5 +1,6 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' +import classnames from 'classnames' export default class MetaFoxLogo extends PureComponent { static propTypes = { @@ -7,23 +8,30 @@ export default class MetaFoxLogo extends PureComponent { unsetIconHeight: PropTypes.bool, } + static defaultProps = { + onClick: undefined, + } + render () { - const iconProps = this.props.unsetIconHeight ? {} : { height: 42, width: 42 } + const { onClick, unsetIconHeight } = this.props + const iconProps = unsetIconHeight ? {} : { height: 42, width: 42 } return (