From 9a3692d14725389d48f6222da5ee2e8517b6232b Mon Sep 17 00:00:00 2001 From: Philip Date: Sun, 13 Apr 2025 09:25:10 +0200 Subject: [PATCH] Refactor DashboardPage to use DashboardContent component and add API endpoint to fetch all children by user --- src/app/app/page.tsx | 24 +--- .../dashboard/dashboard-content.tsx | 123 ++++++++++++++++++ src/components/ui/skeleton.tsx | 15 +++ src/server/api/routers/child.ts | 11 ++ 4 files changed, 151 insertions(+), 22 deletions(-) create mode 100644 src/components/dashboard/dashboard-content.tsx create mode 100644 src/components/ui/skeleton.tsx diff --git a/src/app/app/page.tsx b/src/app/app/page.tsx index 12a862e..383f678 100644 --- a/src/app/app/page.tsx +++ b/src/app/app/page.tsx @@ -2,9 +2,7 @@ import { getAuthSession } from "@/lib/auth" import { redirect } from "next/navigation" import { Header } from "@/components/layout/header" import { Footer } from "@/components/layout/footer" -import Link from "next/link" -import { Button } from "@/components/ui/button" -import { Plus } from "lucide-react" +import { DashboardContent } from "@/components/dashboard/dashboard-content" export default async function DashboardPage() { const session = await getAuthSession() @@ -25,25 +23,7 @@ export default async function DashboardPage() { Wachstum, Impfungen, Zähne & mehr.

-
-
-
-

Kinder

- - - -
-

Du hast noch keine Kinder hinzugefügt.

-
- -
-

Impfungen

-

Noch keine Einträge vorhanden.

-
-
+