diff --git a/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/FullScreenAccountMenu.tsx b/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/FullScreenAccountMenu.tsx index 296a348d0..9e4630a83 100644 --- a/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/FullScreenAccountMenu.tsx +++ b/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/FullScreenAccountMenu.tsx @@ -20,13 +20,12 @@ interface Props { setDisplayPopup: React.Dispatch>; } -const Menus = ({ address, handleClose, setAnchorEl, setDisplayPopup } - : { - address: string | undefined, - handleClose: () => void, - setAnchorEl: React.Dispatch>, - setDisplayPopup: React.Dispatch>, - }) => { +const Menus = ({ address, handleClose, setAnchorEl, setDisplayPopup }: { + address: string | undefined, + handleClose: () => void, + setAnchorEl: React.Dispatch>, + setDisplayPopup: React.Dispatch>, +}) => { const { t } = useTranslation(); const theme = useTheme(); const onAction = useContext(ActionContext); @@ -74,6 +73,8 @@ const Menus = ({ address, handleClose, setAnchorEl, setDisplayPopup } } }, [chain]); + const vaadinIconStyle = { color: `${theme.palette.text.primary}`, height: '20px' }; + return ( + } onClick={onManageProxies} text={t('Manage proxies')} @@ -122,7 +123,7 @@ const Menus = ({ address, handleClose, setAnchorEl, setDisplayPopup } {hasPrivateKey && + } onClick={onExportAccount} text={t('Export account')} @@ -132,7 +133,7 @@ const Menus = ({ address, handleClose, setAnchorEl, setDisplayPopup } {hasPrivateKey && + } onClick={goToDeriveAcc} text={t('Derive new account')} @@ -141,7 +142,7 @@ const Menus = ({ address, handleClose, setAnchorEl, setDisplayPopup } } + } onClick={onRenameAccount} text={t('Rename')} @@ -149,17 +150,17 @@ const Menus = ({ address, handleClose, setAnchorEl, setDisplayPopup } /> + } onClick={onForgetAccount} text={t('Forget account')} withHoverEffect /> - ) + ); }; -function FullScreenAccountMenu({ address, baseButton, setDisplayPopup }: Props): React.ReactElement { +function FullScreenAccountMenu ({ address, baseButton, setDisplayPopup }: Props): React.ReactElement { const theme = useTheme(); const [anchorEl, setAnchorEl] = React.useState(null); @@ -200,9 +201,9 @@ function FullScreenAccountMenu({ address, baseButton, setDisplayPopup }: Props): > diff --git a/packages/extension-polkagate/src/partials/AccountMenu.tsx b/packages/extension-polkagate/src/partials/AccountMenu.tsx index d408d06f0..95a9aac78 100644 --- a/packages/extension-polkagate/src/partials/AccountMenu.tsx +++ b/packages/extension-polkagate/src/partials/AccountMenu.tsx @@ -25,7 +25,7 @@ interface Props { noMargin?: boolean; } -function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): React.ReactElement { +function AccountMenu ({ address, isMenuOpen, noMargin, setShowMenu }: Props): React.ReactElement { const { t } = useTranslation(); const theme = useTheme(); const options = useGenesisHashOptions(); @@ -45,10 +45,9 @@ function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): Rea address && onAction(`/derive/${address}/locked`); }, [address, onAction]); - const closeMenu = useCallback( - () => setShowMenu((isMenuOpen) => !isMenuOpen), - [setShowMenu] - ); + const closeMenu = useCallback(() => + setShowMenu((isMenuOpen) => !isMenuOpen) + , [setShowMenu]); const onChangeNetwork = useCallback((newGenesisHash: string) => { const availableGenesisHash = newGenesisHash.startsWith('0x') ? newGenesisHash : null; @@ -87,6 +86,8 @@ function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): Rea const MenuSeparator = () => ; + const vaadinIconStyle = { color: `${theme.palette.text.primary}`, height: '18px' }; + const movingParts = ( @@ -109,7 +110,7 @@ function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): Rea + } onClick={onManageProxies} text={t('Manage proxies')} @@ -138,7 +139,7 @@ function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): Rea {hasPrivateKey && + } onClick={onExportAccount} text={t('Export account')} @@ -147,7 +148,7 @@ function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): Rea {hasPrivateKey && + } onClick={goToDeriveAcc} text={t('Derive new account')} @@ -156,7 +157,7 @@ function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): Rea } + } onClick={onRenameAccount} text={t('Rename')} @@ -164,7 +165,7 @@ function AccountMenu({ address, isMenuOpen, noMargin, setShowMenu }: Props): Rea /> + } onClick={onForgetAccount} text={t('Forget account')}