From ea53136068684fe7ba51ebb4d331a63bd64ddcc5 Mon Sep 17 00:00:00 2001 From: PhuocNTB Date: Fri, 3 Jul 2026 22:28:20 +0700 Subject: [PATCH] teamp tou uu giao dien --- management/src/App.tsx | 67 ++++++++++++++++++- .../components/SeatingTemplatesSection.tsx | 4 +- .../src/components/WorkspaceSeatingChart.tsx | 2 +- management/src/index.css | 45 ++++++++++++- 4 files changed, 112 insertions(+), 6 deletions(-) diff --git a/management/src/App.tsx b/management/src/App.tsx index c5899f0..8c9e344 100644 --- a/management/src/App.tsx +++ b/management/src/App.tsx @@ -102,6 +102,15 @@ function App() { const route = useRoute(); const { staff, logout } = useAuth(); const [sidebarOpen, setSidebarOpen] = useState(false); + const [sidebarCollapsed, setSidebarCollapsed] = useState(() => { + return localStorage.getItem('sc_sidebar_collapsed') === 'true'; + }); + + const toggleSidebarCollapse = () => { + const nextVal = !sidebarCollapsed; + setSidebarCollapsed(nextVal); + localStorage.setItem('sc_sidebar_collapsed', String(nextVal)); + }; const [myClasses, setMyClasses] = useState<{ id: number; name: string; code: string }[]>(() => { try { const stored = localStorage.getItem('sc_my_classes_details'); @@ -186,13 +195,37 @@ function App() { /> )} -