1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

changed the order of items (#12384)

This commit is contained in:
dragana8 2021-10-18 16:57:59 +02:00 committed by GitHub
parent 707ae7d652
commit 52641efa08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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={() => {