renamed a type + small improvements

This commit is contained in:
Daniel
2023-06-16 16:25:21 +03:30
parent 93558bb791
commit c1831b650d
18 changed files with 70 additions and 70 deletions
+6 -4
View File
@@ -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
View File
@@ -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;