|
|
@ -278,22 +278,22 @@ export default class AccountMenu extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
renderScrollButton() { |
|
|
|
renderScrollButton() { |
|
|
|
const { shouldShowScrollButton } = this.state |
|
|
|
if (!this.state.shouldShowScrollButton) { |
|
|
|
|
|
|
|
return null |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
shouldShowScrollButton && ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
className="account-menu__scroll-button" |
|
|
|
className="account-menu__scroll-button" |
|
|
|
onClick={this.handleScrollDown} |
|
|
|
onClick={this.handleScrollDown} |
|
|
|
> |
|
|
|
> |
|
|
|
<img |
|
|
|
<img |
|
|
|
src="./images/icons/down-arrow.svg" |
|
|
|
src="./images/icons/down-arrow.svg" |
|
|
|
width="28" |
|
|
|
width={28} |
|
|
|
height="28" |
|
|
|
height={28} |
|
|
|
alt={this.context.t('scrollDown')} |
|
|
|
alt="scroll down" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -357,6 +357,7 @@ export default class AccountMenu extends Component { |
|
|
|
<img |
|
|
|
<img |
|
|
|
className="account-menu__item-icon" |
|
|
|
className="account-menu__item-icon" |
|
|
|
src="images/plus-btn-white.svg" |
|
|
|
src="images/plus-btn-white.svg" |
|
|
|
|
|
|
|
alt={t('createAccount')} |
|
|
|
/> |
|
|
|
/> |
|
|
|
} |
|
|
|
} |
|
|
|
text={t('createAccount')} |
|
|
|
text={t('createAccount')} |
|
|
@ -377,6 +378,7 @@ export default class AccountMenu extends Component { |
|
|
|
<img |
|
|
|
<img |
|
|
|
className="account-menu__item-icon" |
|
|
|
className="account-menu__item-icon" |
|
|
|
src="images/import-account.svg" |
|
|
|
src="images/import-account.svg" |
|
|
|
|
|
|
|
alt={t('importAccount')} |
|
|
|
/> |
|
|
|
/> |
|
|
|
} |
|
|
|
} |
|
|
|
text={t('importAccount')} |
|
|
|
text={t('importAccount')} |
|
|
@ -401,6 +403,7 @@ export default class AccountMenu extends Component { |
|
|
|
<img |
|
|
|
<img |
|
|
|
className="account-menu__item-icon" |
|
|
|
className="account-menu__item-icon" |
|
|
|
src="images/connect-icon.svg" |
|
|
|
src="images/connect-icon.svg" |
|
|
|
|
|
|
|
alt={t('connectHardwareWallet')} |
|
|
|
/> |
|
|
|
/> |
|
|
|
} |
|
|
|
} |
|
|
|
text={t('connectHardwareWallet')} |
|
|
|
text={t('connectHardwareWallet')} |
|
|
@ -411,7 +414,7 @@ export default class AccountMenu extends Component { |
|
|
|
toggleAccountMenu() |
|
|
|
toggleAccountMenu() |
|
|
|
history.push(ABOUT_US_ROUTE) |
|
|
|
history.push(ABOUT_US_ROUTE) |
|
|
|
}} |
|
|
|
}} |
|
|
|
icon={<img src="images/mm-info-icon.svg" />} |
|
|
|
icon={<img src="images/mm-info-icon.svg" alt={t('infoHelp')} />} |
|
|
|
text={t('infoHelp')} |
|
|
|
text={t('infoHelp')} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<AccountMenuItem |
|
|
|
<AccountMenuItem |
|
|
|