diff --git a/src/components/common/Drawer/Drawer.tsx b/src/components/common/Drawer/Drawer.tsx index 58077b8..1359c18 100644 --- a/src/components/common/Drawer/Drawer.tsx +++ b/src/components/common/Drawer/Drawer.tsx @@ -31,6 +31,7 @@ import { clearSemester, clearStudentName, } from 'src/redux/slices/filter'; +import { setOpen, setPinned } from 'src/redux/slices/drawer'; const drawerWidth = 240; diff --git a/src/redux/slices/drawer.js b/src/redux/slices/drawer.js index 7ea4e45..9f56974 100644 --- a/src/redux/slices/drawer.js +++ b/src/redux/slices/drawer.js @@ -12,7 +12,7 @@ const slice = createSlice({ setPinned: (state, action) => { state.pinned = action.payload; }, - setopen: (state, action) => { + setOpen: (state, action) => { state.open = action.payload; }, },