added view team modal

This commit is contained in:
daniel31x13
2023-11-15 23:31:13 -05:00
parent 59815f47d8
commit 021f7c9481
6 changed files with 242 additions and 64 deletions
+10 -2
View File
@@ -39,6 +39,14 @@ type Modal =
active?: CollectionIncludingMembersAndLinkCount;
defaultIndex?: number;
}
| {
modal: "COLLECTION";
state: boolean;
method: "VIEW_TEAM";
isOwner?: boolean;
active?: CollectionIncludingMembersAndLinkCount;
defaultIndex?: number;
}
| null;
type ModalsStore = {
@@ -46,11 +54,11 @@ type ModalsStore = {
setModal: (modal: Modal) => void;
};
const useLocalSettingsStore = create<ModalsStore>((set) => ({
const useModalStore = create<ModalsStore>((set) => ({
modal: null,
setModal: (modal: Modal) => {
set({ modal });
},
}));
export default useLocalSettingsStore;
export default useModalStore;