diff --git a/src/components/UI/Header.tsx b/src/components/UI/Header.tsx index e0e435f266..b8bc168946 100644 --- a/src/components/UI/Header.tsx +++ b/src/components/UI/Header.tsx @@ -2,11 +2,12 @@ import { Box, Flex, Input, InputGroup, Link, Stack, Text, useColorMode } from '@ import { FC } from 'react'; import NextLink from 'next/link'; -import { HamburgerIcon, LensIcon, MoonIcon } from '../UI/icons'; +import { HamburgerIcon, LensIcon, MoonIcon, SunIcon } from '../UI/icons'; import { DOCS_PAGE, DOWNLOADS_PAGE } from '../../constants'; export const Header: FC = () => { - const { toggleColorMode } = useColorMode(); + const { colorMode, toggleColorMode } = useColorMode(); + const isDark = colorMode === 'dark'; return ( { borderColor='primary' onClick={toggleColorMode} > - + {isDark ? : } {/* HAMBURGER MENU */} diff --git a/src/components/UI/icons/SunIcon.tsx b/src/components/UI/icons/SunIcon.tsx new file mode 100644 index 0000000000..d866d86daf --- /dev/null +++ b/src/components/UI/icons/SunIcon.tsx @@ -0,0 +1,19 @@ +import { createIcon } from '@chakra-ui/icons'; + +export const SunIcon = createIcon({ + displayName: 'SunIcon', + viewBox: '0 0 44 44', + path: ( + + + + + + + + + + + + ) +}); diff --git a/src/components/UI/icons/index.ts b/src/components/UI/icons/index.ts index 3ebd814f42..5bbac7fd7a 100644 --- a/src/components/UI/icons/index.ts +++ b/src/components/UI/icons/index.ts @@ -3,4 +3,5 @@ export * from './GitHubIcon'; export * from './HamburgerIcon'; export * from './LensIcon'; export * from './MoonIcon'; +export * from './SunIcon'; export * from './TwitterIcon';