Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix ts error

Steven Tey37506106ddcc
diff --git a/apps/web/lib/folder/constants.ts b/apps/web/lib/folder/constants.ts
index b333ab5517..97cd741299 100644
--- a/apps/web/lib/folder/constants.ts
+++ b/apps/web/lib/folder/constants.ts
@@ -45,5 +45,4 @@ export const unsortedLinks: FolderSummary = {
id: "unsorted",
name: "Links",
accessLevel: "write",
- linkCount: -1,
};
diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.ts
index 08c5f5264e..2746d16e91 100644
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@ -462,10 +462,7 @@ export type FolderWithPermissions = {
permissions: FolderPermission[];
};
-export type FolderSummary = Pick<
- Folder,
- "id" | "name" | "accessLevel" | "type"
->;
+export type FolderSummary = Pick<Folder, "id" | "name" | "accessLevel">;
// Rewards
diff --git a/apps/web/ui/folders/folder-permissions-panel.tsx b/apps/web/ui/folders/folder-permissions-panel.tsx
index 58f3874005..7b51f166a0 100644
--- a/apps/web/ui/folders/folder-permissions-panel.tsx
+++ b/apps/web/ui/folders/folder-permissions-panel.tsx
@@ -365,7 +365,7 @@ const FolderUserPlaceholder = () => (
);
export function useFolderPermissionsPanel(
- folder: Pick<Folder, "id" | "name" | "accessLevel" | "type">,
+ folder: Pick<Folder, "id" | "name" | "accessLevel">,
) {
const [showFolderPermissionsPanel, setShowFolderPermissionsPanel] =
useState(false);