diff --git a/src/components/ui/menus/AccountDisplay/MenuButtonDisplay.tsx b/src/components/ui/menus/AccountDisplay/MenuButtonDisplay.tsx
index 91030b445a..13b797b403 100644
--- a/src/components/ui/menus/AccountDisplay/MenuButtonDisplay.tsx
+++ b/src/components/ui/menus/AccountDisplay/MenuButtonDisplay.tsx
@@ -1,5 +1,5 @@
-import { Box, Flex, Text } from '@chakra-ui/react';
-import { ArrowDown } from '@decent-org/fractal-ui';
+import { Box, Flex, Icon } from '@chakra-ui/react';
+import { CaretDown } from '@phosphor-icons/react';
import { useTranslation } from 'react-i18next';
import useAvatar from '../../../../hooks/utils/useAvatar';
import useDisplayName from '../../../../hooks/utils/useDisplayName';
@@ -13,8 +13,11 @@ export function NotConnected() {
alignItems="center"
gap="1"
>
- {t('connectWallet')}
-
+ {t('connectWallet')}
+
);
}
@@ -36,14 +39,17 @@ export function Connected() {
alignItems="center"
gap="0.75rem"
>
-
+
- {accountDisplayName}
-
+ {accountDisplayName}
+
);
}
diff --git a/src/components/ui/menus/AccountDisplay/MenuItemButton.tsx b/src/components/ui/menus/AccountDisplay/MenuItemButton.tsx
index 7c869082be..7a47140e44 100644
--- a/src/components/ui/menus/AccountDisplay/MenuItemButton.tsx
+++ b/src/components/ui/menus/AccountDisplay/MenuItemButton.tsx
@@ -1,5 +1,4 @@
-import { Flex, MenuItem, Text } from '@chakra-ui/react';
-import { Fragment } from 'react';
+import { Box, Button, MenuItem, Text } from '@chakra-ui/react';
/**
* Used to display a simple clickable item to the menu.
@@ -17,27 +16,24 @@ export function MenuItemButton({
onClick?: () => void;
}) {
return (
-
+
+ }
>
-
- {label}
-
-
+ {label}
-
+
);
}
diff --git a/src/components/ui/menus/AccountDisplay/MenuItemNetwork.tsx b/src/components/ui/menus/AccountDisplay/MenuItemNetwork.tsx
index b86d21dd58..b6253d95d1 100644
--- a/src/components/ui/menus/AccountDisplay/MenuItemNetwork.tsx
+++ b/src/components/ui/menus/AccountDisplay/MenuItemNetwork.tsx
@@ -1,4 +1,5 @@
import { Box, Flex, Select, Text } from '@chakra-ui/react';
+import { CaretDown } from '@phosphor-icons/react';
import { useTranslation } from 'react-i18next';
import { useSwitchChain } from 'wagmi';
import {
@@ -17,41 +18,70 @@ export function MenuItemNetwork() {
return (
{t('network')}
-
+ }
+ borderRadius="4px"
+ onChange={async e => {
+ e.preventDefault();
+ switchChain({ chainId: Number(e.target.value) });
+ }}
+ value={chain.id}
+ >
+ {supportedNetworks.map(network => (
+
+ ))}
+
+
);
diff --git a/src/components/ui/menus/AccountDisplay/MenuItemWallet.tsx b/src/components/ui/menus/AccountDisplay/MenuItemWallet.tsx
index 10b4657bae..433f63bfa1 100644
--- a/src/components/ui/menus/AccountDisplay/MenuItemWallet.tsx
+++ b/src/components/ui/menus/AccountDisplay/MenuItemWallet.tsx
@@ -1,11 +1,10 @@
-import { Box, Flex, MenuItem, Text } from '@chakra-ui/react';
-import { Copy } from '@decent-org/fractal-ui';
+import { Box, Button, Flex, MenuItem, Text } from '@chakra-ui/react';
+import { CopySimple } from '@phosphor-icons/react/dist/ssr';
import { useTranslation } from 'react-i18next';
import useAvatar from '../../../../hooks/utils/useAvatar';
import { useCopyText } from '../../../../hooks/utils/useCopyText';
import useDisplayName from '../../../../hooks/utils/useDisplayName';
import { useFractal } from '../../../../providers/App/AppProvider';
-import EtherscanLinkAddress from '../../links/EtherscanLinkAddress';
import Avatar from '../../page/Header/Avatar';
/**
@@ -28,58 +27,46 @@ export function MenuItemWallet() {
return (
-
-
-
- {t('wallet')}
-
-
-
-
+ {t('wallet')}
+
+
-
+ }
+ >
+
+ {accountDisplayName}
+
+
+
);
}
diff --git a/src/components/ui/menus/AccountDisplay/MenuItems.tsx b/src/components/ui/menus/AccountDisplay/MenuItems.tsx
index e295992612..07f97acd9a 100644
--- a/src/components/ui/menus/AccountDisplay/MenuItems.tsx
+++ b/src/components/ui/menus/AccountDisplay/MenuItems.tsx
@@ -1,5 +1,5 @@
-import { MenuList } from '@chakra-ui/react';
-import { Connect, Disconnect } from '@decent-org/fractal-ui';
+import { Divider, MenuList } from '@chakra-ui/react';
+import { Link, Plugs } from '@phosphor-icons/react';
import { useWeb3Modal } from '@web3modal/wagmi/react';
import { useTranslation } from 'react-i18next';
import { useDisconnect } from 'wagmi';
@@ -18,29 +18,26 @@ export function MenuItems() {
return (
:nth-of-type(1)': {
- borderTopRadius: 'lg',
- },
- '& > :last-child': {
- borderBottomRadius: 'lg',
- },
- }}
+ rounded="0.5rem"
+ boxShadow="0px 1px 0px 0px var(--chakra-colors-neutral-1)"
+ bg="rgba(38, 33, 42, 0.74)"
+ border="1px solid"
+ borderColor="neutral-3"
>
- {user.address && }
+ {user.address && (
+ <>
+
+
+ >
+ )}
+
{!user.address && (
open()}
/>
)}
@@ -48,7 +45,7 @@ export function MenuItems() {
)}
diff --git a/src/components/ui/menus/AccountDisplay/index.tsx b/src/components/ui/menus/AccountDisplay/index.tsx
index d4e1da528c..32dd67ed4b 100644
--- a/src/components/ui/menus/AccountDisplay/index.tsx
+++ b/src/components/ui/menus/AccountDisplay/index.tsx
@@ -1,21 +1,22 @@
-import { Menu, MenuButton } from '@chakra-ui/react';
-import { Fragment } from 'react';
+import { Button, Menu, MenuButton } from '@chakra-ui/react';
import { MenuButtonDisplay } from './MenuButtonDisplay';
import { MenuItems } from './MenuItems';
export function AccountDisplay() {
return (
-