authButton fixed
This commit is contained in:
@@ -3,10 +3,10 @@ import { create } from 'zustand';
|
||||
|
||||
type CabinetNavZustand = {
|
||||
navItem: CabinetSection;
|
||||
setNavItem: (item: string) => void;
|
||||
setNavItem: (item: CabinetSection) => void;
|
||||
};
|
||||
|
||||
export const useCabinetNav = create<CabinetNavZustand>((set) => ({
|
||||
navItem: 'dashboard',
|
||||
setNavItem: (item: string) => set({ navItem: item || 'dash' }),
|
||||
setNavItem: (item: CabinetSection) => set({ navItem: item }),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user