Skip to content

Commit fa4bd40

Browse files
committed
use custom useColorModeValue in mobile menu
1 parent b9aa595 commit fa4bd40

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/components/Nav/Mobile/MenuFooter.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import { useTranslation } from "next-i18next"
22
import { BsTranslate } from "react-icons/bs"
33
import { MdBrightness2, MdSearch, MdWbSunny } from "react-icons/md"
4-
import {
5-
Button,
6-
ButtonProps,
7-
Icon,
8-
MenuButton,
9-
useColorModeValue,
10-
} from "@chakra-ui/react"
4+
import { Button, ButtonProps, Icon, MenuButton } from "@chakra-ui/react"
115

126
import LanguagePicker from "@/components/LanguagePicker"
137

@@ -16,6 +10,8 @@ import { MOBILE_LANGUAGE_BUTTON_NAME } from "@/lib/constants"
1610
import FooterButton from "./FooterButton"
1711
import FooterItemText from "./FooterItemText"
1812

13+
import useColorModeValue from "@/hooks/useColorModeValue"
14+
1915
/**
2016
* This is necessary to be backwards compatible with the old FooterButton
2117
* component where the ref was NOT passed to the Button component in order to

0 commit comments

Comments
 (0)