diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 6c03f2b..bb57451 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -6,11 +6,12 @@ import Link from 'next/link' import { useRouter } from 'next/router' import { redirectTo } from '@utils/Tools' +import { Theme, UserCache } from '@types' import DiscordAvatar from '@components/DiscordAvatar' -const Navbar = (): JSX.Element => { - let userCache +const Navbar = ({ theme, setTheme }:NavbarProps): JSX.Element => { + let userCache:UserCache try { userCache = JSON.parse(localStorage.userCache) } catch { @@ -72,10 +73,10 @@ const Navbar = (): JSX.Element => {