mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* feat: replace team list view with org list view UI and fix team view user availability * update * update2 * some changes * Remove old team availability modal - fix flex direction * fix * fix type error * update * update * fix type error * update * upfate edit sheet * final update * fix flaky e2e * fix e2e * typo * profile update flow * fix type error and refactor * small update * NIT * update * chore: fix types * update --------- Co-authored-by: sean-brydon <[email protected]> Co-authored-by: Amit Sharma <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
16 lines
436 B
TypeScript
16 lines
436 B
TypeScript
import { create } from "zustand";
|
|
|
|
interface EditModeState {
|
|
editMode: boolean;
|
|
setEditMode: (editMode: boolean) => void;
|
|
mutationLoading: boolean;
|
|
setMutationLoading: (loading: boolean) => void;
|
|
}
|
|
|
|
export const useEditMode = create<EditModeState>((set) => ({
|
|
editMode: false,
|
|
setEditMode: (editMode) => set({ editMode }),
|
|
mutationLoading: false,
|
|
setMutationLoading: (loading) => set({ mutationLoading: loading }),
|
|
}));
|