changed the order of items (#12384)

feature/default_network_editable
dragana8 3 years ago committed by GitHub
parent 707ae7d652
commit 52641efa08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      ui/components/app/menu-bar/account-options-menu.js

@ -77,6 +77,27 @@ export default function AccountOptionsMenu({ anchorElement, onClose }) {
className="account-options-menu" className="account-options-menu"
onHide={onClose} onHide={onClose}
> >
<MenuItem
onClick={() => {
blockExplorerLinkClickedEvent();
global.platform.openTab({
url: addressLink,
});
onClose();
}}
subtitle={
blockExplorerUrlSubTitle ? (
<span className="account-options-menu__explorer-origin">
{blockExplorerUrlSubTitle}
</span>
) : null
}
iconClassName="fas fa-external-link-alt"
>
{rpcPrefs.blockExplorerUrl
? t('viewinExplorer', [t('blockExplorerAccountAction')])
: t('viewOnEtherscan', [t('blockExplorerAccountAction')])}
</MenuItem>
{getEnvironmentType() === ENVIRONMENT_TYPE_FULLSCREEN ? null : ( {getEnvironmentType() === ENVIRONMENT_TYPE_FULLSCREEN ? null : (
<MenuItem <MenuItem
onClick={() => { onClick={() => {
@ -100,27 +121,6 @@ export default function AccountOptionsMenu({ anchorElement, onClose }) {
> >
{t('accountDetails')} {t('accountDetails')}
</MenuItem> </MenuItem>
<MenuItem
onClick={() => {
blockExplorerLinkClickedEvent();
global.platform.openTab({
url: addressLink,
});
onClose();
}}
subtitle={
blockExplorerUrlSubTitle ? (
<span className="account-options-menu__explorer-origin">
{blockExplorerUrlSubTitle}
</span>
) : null
}
iconClassName="fas fa-external-link-alt"
>
{rpcPrefs.blockExplorerUrl
? t('viewinExplorer', [t('blockExplorerAccountAction')])
: t('viewOnEtherscan', [t('blockExplorerAccountAction')])}
</MenuItem>
<MenuItem <MenuItem
data-testid="account-options-menu__connected-sites" data-testid="account-options-menu__connected-sites"
onClick={() => { onClick={() => {

Loading…
Cancel
Save