diff --git a/src/components/shared/sidebar.tsx b/src/components/shared/sidebar.tsx index 30e2f1e..7d630a1 100644 --- a/src/components/shared/sidebar.tsx +++ b/src/components/shared/sidebar.tsx @@ -4,6 +4,8 @@ import { LayoutGrid, Camera, FileDown, Settings, Package, BarChart3 } from "luci import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; +import { useGridStore } from "@/features/grid/store/use-grid-store"; +import { useEffect, useState } from "react"; const NAV_ITEMS = [ { icon: LayoutGrid, label: "Grille", href: "/grid" }, @@ -15,6 +17,12 @@ const NAV_ITEMS = [ export function Sidebar() { const pathname = usePathname(); + const activeGridQuery = useGridStore((s) => s.activeGridQuery); + const [isMounted, setIsMounted] = useState(false); + + useEffect(() => { + setIsMounted(true); + }, []); return (