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