renamed a type + small improvements
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import { create } from "zustand";
|
||||
import { CollectionIncludingMembers } from "@/types/global";
|
||||
import { CollectionIncludingMembersAndLinkCount } from "@/types/global";
|
||||
import useTagStore from "./tags";
|
||||
|
||||
type CollectionStore = {
|
||||
collections: CollectionIncludingMembers[];
|
||||
collections: CollectionIncludingMembersAndLinkCount[];
|
||||
setCollections: () => void;
|
||||
addCollection: (body: CollectionIncludingMembers) => Promise<boolean>;
|
||||
addCollection: (
|
||||
body: CollectionIncludingMembersAndLinkCount
|
||||
) => Promise<boolean>;
|
||||
updateCollection: (
|
||||
collection: CollectionIncludingMembers
|
||||
collection: CollectionIncludingMembersAndLinkCount
|
||||
) => Promise<boolean>;
|
||||
removeCollection: (collectionId: number) => Promise<boolean>;
|
||||
};
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
AccountSettings,
|
||||
CollectionIncludingMembers,
|
||||
CollectionIncludingMembersAndLinkCount,
|
||||
LinkIncludingShortenedCollectionAndTags,
|
||||
} from "@/types/global";
|
||||
import { create } from "zustand";
|
||||
@@ -28,7 +28,7 @@ type Modal =
|
||||
modal: "COLLECTION";
|
||||
state: boolean;
|
||||
method: "CREATE" | "UPDATE";
|
||||
active: CollectionIncludingMembers;
|
||||
active: CollectionIncludingMembersAndLinkCount;
|
||||
defaultIndex?: number;
|
||||
}
|
||||
| null;
|
||||
|
||||
Reference in New Issue
Block a user