diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 933fea32a..2f92bcf31 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -5,15 +5,22 @@ import classNames from 'classnames'; import Link from 'next/link'; import { useTranslation } from 'next-i18next'; import PowerIcon from '@heroicons/react/20/solid/PowerIcon'; +import useTheme from '@lib/ui/hooks/useTheme'; export const Navbar = ({ session }: { session: Session | null }) => { const [isOpen, setIsOpen] = React.useState(false); const { t } = useTranslation('common'); + const { selectedTheme, toggleTheme } = useTheme(); return ( -
+
+
{session && (
@@ -31,10 +38,11 @@ export const Navbar = ({ session }: { session: Session | null }) => {
)} + {session && (
{ className={classNames('relative z-40 md:hidden', { hidden: isOpen })} role='dialog' aria-modal='true'> -
-
-
-
+
+
+
+
-
+
BoxyHQ - BoxyHQ Admin Portal + BoxyHQ Admin Portal
@@ -178,13 +178,14 @@ export const Sidebar = ({ isOpen, setIsOpen }: SidebarProps) => { {/* Sidebar for desktop */}
-
+
BoxyHQ - BoxyHQ Admin Portal + BoxyHQ Admin Portal
+
@@ -228,8 +229,8 @@ const ItemLink = (props: MenuItem) => { {props.icon &&