diff --git a/src/layouts/common/account-popover.tsx b/src/layouts/common/account-popover.tsx index fe4be8a..b2f7097 100644 --- a/src/layouts/common/account-popover.tsx +++ b/src/layouts/common/account-popover.tsx @@ -28,7 +28,7 @@ export default function AccountPopover() { const OPTIONS = [ { label: t('menu.account'), - linkTo: paths.dashboard.user.account + linkTo: paths.dashboard.user.root } ] diff --git a/src/layouts/dashboard/config-navigation.tsx b/src/layouts/dashboard/config-navigation.tsx index 0e498db..3d89326 100644 --- a/src/layouts/dashboard/config-navigation.tsx +++ b/src/layouts/dashboard/config-navigation.tsx @@ -53,7 +53,7 @@ export function useNavData() { title: t('menu.user'), path: paths.dashboard.user.root, icon: ICONS.user, - children: [{ title: t('menu.account'), path: paths.dashboard.user.account }] + children: [{ title: t('menu.account'), path: paths.dashboard.user.root }] } ] } diff --git a/src/routes/paths.ts b/src/routes/paths.ts index fb5ec8d..91ad342 100644 --- a/src/routes/paths.ts +++ b/src/routes/paths.ts @@ -23,18 +23,12 @@ export const paths = { root: `${ROOTS.DASHBOARD}/nfts`, content: (id: string) => `${ROOTS.DASHBOARD}/nfts` }, + transfer: { + all: `${ROOTS.DASHBOARD}/transfer/all` + }, user: { root: `${ROOTS.DASHBOARD}/user/account`, - account: `${ROOTS.DASHBOARD}/user/account`, - email: `${ROOTS.DASHBOARD}/user/account/email`, - wallet: { - root: (walletId: string) => `${ROOTS.DASHBOARD}/user/wallet/${walletId}`, - nfts: { - root: (walletId: string) => `${ROOTS.DASHBOARD}/user/wallet/${walletId}/nfts`, - item: (walletId: string, nftId: string) => - `${ROOTS.DASHBOARD}/user/wallet/${walletId}/nfts/${nftId}` - } - } + email: `${ROOTS.DASHBOARD}/user/account/email` } } } diff --git a/src/sections/account/change-email.tsx b/src/sections/account/change-email.tsx index 23cac85..69bd859 100644 --- a/src/sections/account/change-email.tsx +++ b/src/sections/account/change-email.tsx @@ -121,14 +121,14 @@ export default function ChangeEmail() { }, [startCountdown, contextUser, generate2faCodeEmail, t, setValue, enqueueSnackbar]) const handleCancel = () => { - router.push(paths.dashboard.user.account) + router.push(paths.dashboard.user.root) } const onSubmit = async (data: any) => { try { // @ts-ignore await updateEmail?.(contextUser!.phoneNumber, data.code || '', confirmEmail, contextUser!.id) - router.push(paths.dashboard.user.account) + router.push(paths.dashboard.user.root) setErrorMsg('') enqueueSnackbar(t('common.msg.update-success')) } catch (ex) {