diff --git a/components/core/UserNav/DropdownMenu.module.css b/components/core/UserNav/DropdownMenu.module.css index 9568f9fb1..ee30070d2 100644 --- a/components/core/UserNav/DropdownMenu.module.css +++ b/components/core/UserNav/DropdownMenu.module.css @@ -3,7 +3,7 @@ @screen lg { @apply absolute right-0 w-screen; - max-width: 160px; + max-width: 200px; } & .dropdownMenuContainer { @@ -15,8 +15,12 @@ } & .link { - @apply cursor-pointer px-6 py-3 block space-y-1 hover:bg-accents-1 transition ease-in-out duration-150 text-base leading-6 font-medium text-gray-900; + @apply flex space-x-2 cursor-pointer px-6 py-3 block space-y-1 hover:bg-accents-1 transition ease-in-out duration-150 text-base leading-6 font-medium text-gray-900 items-center; text-transform: capitalize; + + & .icons svg { + @apply w-6 h-6; + } } &.off { diff --git a/components/core/UserNav/DropdownMenu.tsx b/components/core/UserNav/DropdownMenu.tsx index f6a3d53e8..e510bdd29 100644 --- a/components/core/UserNav/DropdownMenu.tsx +++ b/components/core/UserNav/DropdownMenu.tsx @@ -9,7 +9,7 @@ import { } from '@react-aria/overlays' import Link from 'next/link' import cn from 'classnames' - +import { Moon, Sun } from '@components/icon' interface DropdownMenuProps { onClose: () => void innerRef: React.MutableRefObject @@ -54,7 +54,12 @@ const DropdownMenu: FC = ({ theme === 'dark' ? setTheme('light') : setTheme('dark') } > - Theme: {theme} + + Theme: {theme}{' '} + + + {theme === 'dark' ? : } + diff --git a/components/icon/Moon.tsx b/components/icon/Moon.tsx new file mode 100644 index 000000000..db94ac7bd --- /dev/null +++ b/components/icon/Moon.tsx @@ -0,0 +1,19 @@ +const Moon = ({ ...props }) => { + return ( + + + + ) +} + +export default Moon diff --git a/components/icon/Sun.tsx b/components/icon/Sun.tsx new file mode 100644 index 000000000..7457650b0 --- /dev/null +++ b/components/icon/Sun.tsx @@ -0,0 +1,27 @@ +const Sun = ({ ...props }) => { + return ( + + + + + + + + + + + + ) +} + +export default Sun diff --git a/components/icon/index.ts b/components/icon/index.ts index 725587c69..929003d6f 100644 --- a/components/icon/index.ts +++ b/components/icon/index.ts @@ -6,3 +6,5 @@ export { default as ArrowLeft } from './ArrowLeft' export { default as Plus } from './Plus' export { default as Minus } from './Minus' export { default as Check } from './Check' +export { default as Sun } from './Sun' +export { default as Moon } from './Moon'