* 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 <sean@cal.com> Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
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 }),
|
|
}));
|