From 988f356c7c19d62d9a0cb06e9290e95e964746f6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 2 Dec 2024 13:25:16 -0500 Subject: [PATCH] changed mobile nav drawer to match builder --- src/assets/icons/chain-white.svg | 7 -- .../icons/external-link-arrow-white.svg | 5 -- .../recovery/MobileDrawerContent.tsx | 90 +++++++++++++++++++ src/components/recovery/MobileMoreMenu.tsx | 68 -------------- src/components/recovery/RecoveryHeader.tsx | 19 ++-- src/components/recovery/styles.css.ts | 12 +++ 6 files changed, 116 insertions(+), 85 deletions(-) delete mode 100644 src/assets/icons/chain-white.svg delete mode 100644 src/assets/icons/external-link-arrow-white.svg create mode 100644 src/components/recovery/MobileDrawerContent.tsx delete mode 100644 src/components/recovery/MobileMoreMenu.tsx create mode 100644 src/components/recovery/styles.css.ts diff --git a/src/assets/icons/chain-white.svg b/src/assets/icons/chain-white.svg deleted file mode 100644 index 71153f1..0000000 --- a/src/assets/icons/chain-white.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/assets/icons/external-link-arrow-white.svg b/src/assets/icons/external-link-arrow-white.svg deleted file mode 100644 index 60db0d9..0000000 --- a/src/assets/icons/external-link-arrow-white.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/components/recovery/MobileDrawerContent.tsx b/src/components/recovery/MobileDrawerContent.tsx new file mode 100644 index 0000000..41e5179 --- /dev/null +++ b/src/components/recovery/MobileDrawerContent.tsx @@ -0,0 +1,90 @@ +import { Box, Image, Text } from '@0xsequence/design-system' +import { motion } from 'framer-motion' + +import { useStore } from '~/stores' +import { useObservable } from '~/stores' +import { WalletStore } from '~/stores/WalletStore' + +import networkIcon from '~/assets/icons/chain.svg' +import externalArrowIcon from '~/assets/icons/external-link-arrow.svg' + +import { RECOVERY_HEADER_HEIGHT } from './RecoveryHeader' +import { navDrawer } from './styles.css' + +export const MobileDrawerContent = () => { + const walletStore = useStore(WalletStore) + const isNetworkModalOpen = useObservable(walletStore.isNetworkModalOpen) + + const toggleNetworkModal = () => { + walletStore.isNetworkModalOpen.set(!isNetworkModalOpen) + } + + return ( + + + window.open('https://docs.sequence.xyz/')} + > + + + Docs + + + + toggleNetworkModal()} + > + + + Networks + + + + + ) +} diff --git a/src/components/recovery/MobileMoreMenu.tsx b/src/components/recovery/MobileMoreMenu.tsx deleted file mode 100644 index d99ebc8..0000000 --- a/src/components/recovery/MobileMoreMenu.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import { Box, Button, Card, Image, MenuIcon, Text } from '@0xsequence/design-system' -import * as PopoverPrimitive from '@radix-ui/react-popover' - -import { useObservable, useStore } from '~/stores' -import { WalletStore } from '~/stores/WalletStore' - -import networkIcon from '~/assets/icons/chain-white.svg' -import externalArrowIcon from '~/assets/icons/external-link-arrow-white.svg' - -export default function MobileMoreMenu() { - const walletStore = useStore(WalletStore) - - const isNavDrawerOpen = useObservable(walletStore.isNavDrawerOpen) - const isNetworkModalOpen = useObservable(walletStore.isNetworkModalOpen) - const toggleNavDrawer = () => { - walletStore.isNavDrawerOpen.set(!isNavDrawerOpen) - } - - const toggleNetworkModal = () => { - walletStore.isNetworkModalOpen.set(!isNetworkModalOpen) - } - - return ( - - -