mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 14:55:44 +00:00
refactor(FE-316): Add expanded drawer content and dynamic width
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { DrawerUISlice } from '@/types/stores';
|
||||
import { StateCreator } from 'zustand';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
export const createDrawerUISlice: StateCreator<
|
||||
DrawerUISlice,
|
||||
@@ -44,4 +45,8 @@ export const createDrawerUISlice: StateCreator<
|
||||
const current = get().expandedDrawerOpen;
|
||||
set({ expandedDrawerOpen: !current });
|
||||
},
|
||||
|
||||
expandedDrawerContent: null as ReactNode | null,
|
||||
setExpandedDrawerContent: (content: ReactNode) =>
|
||||
set({ expandedDrawerContent: content }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user