refactor: add sidebar persistence

This commit is contained in:
Mauricio Siu
2025-01-19 01:44:42 -06:00
parent 5310a559b0
commit adb204ec1f
2 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ import {
import { useIsMobile } from "@/hooks/use-mobile";
import { cn } from "@/lib/utils";
const SIDEBAR_COOKIE_NAME = "sidebar:state";
export const SIDEBAR_COOKIE_NAME = "sidebar:state";
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
const SIDEBAR_WIDTH = "16rem";
const SIDEBAR_WIDTH_MOBILE = "18rem";