Fix metamask logo size on connect and on install

This commit is contained in:
apane
2019-11-04 09:36:12 -03:00
committed by David Sun
parent d18de4c541
commit 09706e4ae2

View File

@@ -69,7 +69,8 @@ export class PaymentMethod extends React.PureComponent<PaymentMethodProps> {
private readonly _renderMainContent = (): React.ReactNode => {
const { account, network } = this.props;
const isMobile = envUtil.isMobileOperatingSystem();
const logo = isMobile ? <CoinbaseWalletLogo width={22} /> : <MetaMaskLogo width={19} height={18} />;
const metamaskLogo = <MetaMaskLogo width={23} height={22} />;
const logo = isMobile ? <CoinbaseWalletLogo width={22} /> : metamaskLogo;
const primaryColor = ColorOption.grey;
const secondaryColor = ColorOption.whiteBackground;
const colors = { primaryColor, secondaryColor };
@@ -91,7 +92,7 @@ export class PaymentMethod extends React.PureComponent<PaymentMethodProps> {
fontWeight="normal"
image={
<Container position="relative" display="flex">
<MetaMaskLogo width={23} height={22} />
{metamaskLogo}
</Container>
}
{...colors}