diff --git a/src/components/UI/Header.tsx b/src/components/UI/Header.tsx index 47c92d811c..e0e435f266 100644 --- a/src/components/UI/Header.tsx +++ b/src/components/UI/Header.tsx @@ -1,4 +1,4 @@ -import { Box, Flex, Input, InputGroup, Link, Stack, Text } from '@chakra-ui/react'; +import { Box, Flex, Input, InputGroup, Link, Stack, Text, useColorMode } from '@chakra-ui/react'; import { FC } from 'react'; import NextLink from 'next/link'; @@ -6,6 +6,7 @@ import { HamburgerIcon, LensIcon, MoonIcon } from '../UI/icons'; import { DOCS_PAGE, DOWNLOADS_PAGE } from '../../constants'; export const Header: FC = () => { + const { toggleColorMode } = useColorMode(); return ( { {/* DARK MODE SWITCH */}