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:
parent
707ae7d652
commit
52641efa08
@ -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…
Reference in New Issue
Block a user