From d6dd76021226802adf5295b3243d6f2ae4fa5cc2 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 10 Mar 2024 17:59:58 +0000 Subject: refactor: Move all components to the top level directory --- .../dashboard/bookmarks/components/Bookmarks.tsx | 32 ---------------------- 1 file changed, 32 deletions(-) delete mode 100644 packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx (limited to 'packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx') diff --git a/packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx b/packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx deleted file mode 100644 index 1ad3670c..00000000 --- a/packages/web/app/dashboard/bookmarks/components/Bookmarks.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { redirect } from "next/navigation"; -import BookmarksGrid from "./BookmarksGrid"; -import { ZGetBookmarksRequest } from "@hoarder/trpc/types/bookmarks"; -import { api } from "@/server/api/client"; -import { getServerAuthSession } from "@/server/auth"; - -export default async function Bookmarks({ - favourited, - archived, - title, - showDivider, -}: ZGetBookmarksRequest & { title: string; showDivider?: boolean }) { - const session = await getServerAuthSession(); - if (!session) { - redirect("/"); - } - - const query = { - favourited, - archived, - }; - - const bookmarks = await api.bookmarks.getBookmarks(query); - - return ( -
-
{title}
- {showDivider &&
} - -
- ); -} -- cgit v1.2.3-70-g09d2