Skip to content

Commit e1abde2

Browse files
committed
update Nav component to use Hide instead of Show for mobile menu
1 parent 412ae7c commit e1abde2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Nav/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { lazy, Suspense, useRef } from "react"
22
import { useTranslation } from "next-i18next"
3-
import { Box, Flex, Show, useDisclosure } from "@chakra-ui/react"
3+
import { Box, Flex, Hide, Show, useDisclosure } from "@chakra-ui/react"
44

55
import { EthHomeIcon } from "@/components/icons"
66
import { BaseLink } from "@/components/Link"
@@ -70,7 +70,7 @@ const Nav = () => {
7070
<DesktopNavMenu toggleColorMode={toggleColorMode} />
7171
</Show>
7272

73-
<Show below="md">
73+
<Hide above="md">
7474
{/* Mobile */}
7575
{/* use Suspense to display the Search & the Menu at the same time */}
7676
<Suspense>
@@ -82,7 +82,7 @@ const Nav = () => {
8282
drawerContainerRef={navWrapperRef}
8383
/>
8484
</Suspense>
85-
</Show>
85+
</Hide>
8686
</Flex>
8787
</Flex>
8888
</Flex>

0 commit comments

Comments
 (0)