aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web/app/dashboard/components/Sidebar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web/app/dashboard/components/Sidebar.tsx')
-rw-r--r--packages/web/app/dashboard/components/Sidebar.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/web/app/dashboard/components/Sidebar.tsx b/packages/web/app/dashboard/components/Sidebar.tsx
index c6282a6b..a5c1d7a5 100644
--- a/packages/web/app/dashboard/components/Sidebar.tsx
+++ b/packages/web/app/dashboard/components/Sidebar.tsx
@@ -7,6 +7,7 @@ import SidebarProfileOptions from "./SidebarProfileOptions";
import { Separator } from "@/components/ui/separator";
import AllLists from "./AllLists";
import serverConfig from "@hoarder/shared/config";
+import { api } from "@/server/api/client";
export default async function Sidebar() {
const session = await getServerAuthSession();
@@ -14,6 +15,8 @@ export default async function Sidebar() {
redirect("/");
}
+ const lists = await api.lists.list();
+
return (
<aside className="flex h-screen w-60 flex-col gap-5 border-r p-4">
<Link href={"/dashboard/bookmarks"}>
@@ -53,7 +56,7 @@ export default async function Sidebar() {
</ul>
</div>
<Separator />
- <AllLists />
+ <AllLists initialData={lists} />
<div className="mt-auto flex justify-between justify-self-end">
<div className="my-auto"> {session.user.name} </div>
<SidebarProfileOptions />