From 267e82ff04a15f1b1b00bbbd22c031f64f0ed393 Mon Sep 17 00:00:00 2001 From: Matej Stieranka Date: Sat, 28 Jun 2025 21:07:21 +0200 Subject: [PATCH] feat: Add all sidebar links to homepage --- src/app/page.tsx | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 4b03993..29e5bfe 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,5 @@ import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; -import { getAllLines } from "@/db"; +import { getAllDays, getAllLines } from "@/db"; interface HomePageProps { searchParams: Promise<{ message?: string }>; @@ -7,6 +7,7 @@ interface HomePageProps { export default async function Home({ searchParams }: HomePageProps) { const lines = await getAllLines(); + const days = await getAllDays(); const message = (await searchParams).message; console.log("Message from searchParams:", message); @@ -17,11 +18,37 @@ export default async function Home({ searchParams }: HomePageProps) { {message && ( Refetch all data - Response - - {message} - + {message} )} +
+ +
+
+

Dny

+ +

Linie