mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
b0c050fece
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
49 lines
1.4 KiB
JavaScript
49 lines
1.4 KiB
JavaScript
import React, { PureComponent } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import classnames from 'classnames';
|
|
import MetaFoxHorizontalLogo from './horizontal-logo';
|
|
|
|
export default class MetaFoxLogo extends PureComponent {
|
|
static propTypes = {
|
|
onClick: PropTypes.func,
|
|
unsetIconHeight: PropTypes.bool,
|
|
isOnboarding: PropTypes.bool,
|
|
};
|
|
|
|
static defaultProps = {
|
|
onClick: undefined,
|
|
};
|
|
|
|
render() {
|
|
const { onClick, unsetIconHeight, isOnboarding } = this.props;
|
|
const iconProps = unsetIconHeight ? {} : { height: 42, width: 42 };
|
|
|
|
return (
|
|
<div
|
|
onClick={onClick}
|
|
className={classnames({
|
|
'app-header__logo-container': !isOnboarding,
|
|
'onboarding-app-header__logo-container': isOnboarding,
|
|
'app-header__logo-container--clickable': Boolean(onClick),
|
|
})}
|
|
>
|
|
<MetaFoxHorizontalLogo
|
|
className={classnames({
|
|
'app-header__metafox-logo--horizontal': !isOnboarding,
|
|
'onboarding-app-header__metafox-logo--horizontal': isOnboarding,
|
|
})}
|
|
/>
|
|
<img
|
|
{...iconProps}
|
|
src="./images/logo/metamask-fox.svg"
|
|
className={classnames({
|
|
'app-header__metafox-logo--icon': !isOnboarding,
|
|
'onboarding-app-header__metafox-logo--icon': isOnboarding,
|
|
})}
|
|
alt=""
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
}
|