added cursor based pagination for links

This commit is contained in:
Daniel
2023-06-15 02:04:54 +03:30
parent 6323badbaf
commit 1b6d902c75
29 changed files with 507 additions and 182 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import {
AccountSettings,
CollectionIncludingMembers,
LinkIncludingCollectionAndTags,
LinkIncludingShortenedCollectionAndTags,
} from "@/types/global";
import { create } from "zustand";
@@ -16,13 +16,13 @@ type Modal =
modal: "LINK";
state: boolean;
method: "CREATE";
active?: LinkIncludingCollectionAndTags;
active?: LinkIncludingShortenedCollectionAndTags;
}
| {
modal: "LINK";
state: boolean;
method: "UPDATE";
active: LinkIncludingCollectionAndTags;
active: LinkIncludingShortenedCollectionAndTags;
}
| {
modal: "COLLECTION";