diff --git a/app/pufflings/family/[id]/child/[childId]/dashboard/page.tsx b/app/pufflings/family/[id]/child/[childId]/dashboard/page.tsx index 74105c5..9b64244 100644 --- a/app/pufflings/family/[id]/child/[childId]/dashboard/page.tsx +++ b/app/pufflings/family/[id]/child/[childId]/dashboard/page.tsx @@ -1,13 +1,16 @@ 'use server'; import FeedChart from '@/app/ui/charts/feedChart'; +import DeleteButton from '@/app/ui/deleteButton'; import Recents from '@/app/ui/recents'; +import { getChild } from '@/lib/child'; import { getChildDashboard, LastDiaper, LastFeed, LastSleep, } from '@/lib/dashboard'; +import Link from 'next/link'; const Dashboard = async ({ params: { childId, id }, @@ -18,6 +21,8 @@ const Dashboard = async ({ parseInt(childId) ); + const childInfo = await getChild(parseInt(childId)); + return (
@@ -57,7 +91,7 @@ const childProfilePage = async ({
age: {ageDisplay}
birthday: {formattedBirthday}
- height: {currentHeight?.feet} ft {currentHeight?.inches} in + height: {heightDisplay}
- weight: {currentWeight?.pounds} lbs {currentWeight?.ounces} oz + weight: {weightDisplay}
@@ -102,7 +136,7 @@ const childProfilePage = async ({
- weight: {currentWeight?.pounds} lbs {currentWeight?.ounces} oz + weight: {weightDisplay}
@@ -129,7 +163,7 @@ const childProfilePage = async ({
age: {ageDisplay}
birthday: {formattedBirthday}
- height: {currentHeight?.feet} ft {currentHeight?.inches} in + height: {heightDisplay}
diff --git a/app/pufflings/family/[id]/child/[childId]/sleeps/page.tsx b/app/pufflings/family/[id]/child/[childId]/sleeps/page.tsx index 229d89f..734af92 100644 --- a/app/pufflings/family/[id]/child/[childId]/sleeps/page.tsx +++ b/app/pufflings/family/[id]/child/[childId]/sleeps/page.tsx @@ -3,7 +3,7 @@ import Link from 'next/link'; import { dateFormatter } from '@/lib/dateFormatter'; import { timeFormatter } from '@/lib/timeFormatter'; import { lastCreatedSleep } from '@/lib/sleep'; -import BackButton from '@/app/ui/backButton'; +import BackToChildButton from '@/app/ui/backToChildButton'; export default async function Sleeps({ params: { childId, id }, @@ -22,7 +22,7 @@ export default async function Sleeps({ sleeps