diff --git a/src/components/Layouts/conditional-layout.tsx b/src/components/Layouts/conditional-layout.tsx index 1c0732d..eebb829 100644 --- a/src/components/Layouts/conditional-layout.tsx +++ b/src/components/Layouts/conditional-layout.tsx @@ -1,12 +1,12 @@ "use client"; import { AuthGuard, LoginGuard } from "@/contexts"; +import { useIsMobile } from "@/hooks/use-mobile"; import { usePathname } from "next/navigation"; import type { PropsWithChildren } from "react"; import { Header } from "./header"; import Notification from "./notification"; import { Sidebar } from "./sidebar"; -import { useIsMobile } from "@/hooks/use-mobile"; function MainLayout({ children }: PropsWithChildren) { const isMobile = useIsMobile(); diff --git a/src/components/Layouts/header/theme-toggle/index.tsx b/src/components/Layouts/header/theme-toggle/index.tsx index 84cce11..287bbd2 100644 --- a/src/components/Layouts/header/theme-toggle/index.tsx +++ b/src/components/Layouts/header/theme-toggle/index.tsx @@ -30,6 +30,7 @@ export function ThemeToggleSwitch() {