aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/dashboard/lists
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-09 15:49:24 +0100
committerMohamedBassem <me@mbassem.com>2024-04-09 15:49:24 +0100
commitfe13408831dce4bdae4911098d6079a097cae9e8 (patch)
tree228bbb192b3a0f3417a4526c382b0a3ddf7e04ff /apps/web/app/dashboard/lists
parent994691b02515dfb579a5c3618631065bd76b9e4b (diff)
downloadkarakeep-fe13408831dce4bdae4911098d6079a097cae9e8.tar.zst
feature(web): Allow uploading directly into lists/tags. Fixes #69
Diffstat (limited to 'apps/web/app/dashboard/lists')
-rw-r--r--apps/web/app/dashboard/lists/[listId]/page.tsx28
1 files changed, 13 insertions, 15 deletions
diff --git a/apps/web/app/dashboard/lists/[listId]/page.tsx b/apps/web/app/dashboard/lists/[listId]/page.tsx
index 2b8025e5..49bf77f7 100644
--- a/apps/web/app/dashboard/lists/[listId]/page.tsx
+++ b/apps/web/app/dashboard/lists/[listId]/page.tsx
@@ -1,7 +1,6 @@
import { notFound } from "next/navigation";
import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks";
import DeleteListButton from "@/components/dashboard/lists/DeleteListButton";
-import { BookmarkListContextProvider } from "@/lib/hooks/list-context";
import { api } from "@/server/api/client";
import { TRPCError } from "@trpc/server";
@@ -23,19 +22,18 @@ export default async function ListPage({
}
return (
- <BookmarkListContextProvider listId={list.id}>
- <Bookmarks
- query={{ listId: list.id }}
- showDivider={true}
- header={
- <div className="flex justify-between">
- <span className="text-2xl">
- {list.icon} {list.name}
- </span>
- <DeleteListButton list={list} />
- </div>
- }
- />
- </BookmarkListContextProvider>
+ <Bookmarks
+ query={{ listId: list.id }}
+ showDivider={true}
+ showEditorCard={true}
+ header={
+ <div className="flex justify-between">
+ <span className="text-2xl">
+ {list.icon} {list.name}
+ </span>
+ <DeleteListButton list={list} />
+ </div>
+ }
+ />
);
}