From dea394f566c9b2ba91c40c500c964cef4916e051 Mon Sep 17 00:00:00 2001 From: Mannu Date: Sun, 10 May 2026 11:02:50 +0530 Subject: [PATCH] Fix menu/settings navigation using Link --- src/app/page.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index b1ac86b..936b634 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,6 @@ import { useState, useEffect } from "react"; import Link from "next/link"; -import { useRouter } from "next/navigation"; const OFFLINE_QUEUE_KEY = "tia_offline_queue"; @@ -174,7 +173,6 @@ function getGreeting() { } export default function HomePage() { - const router = useRouter(); const [modalType, setModalType] = useState<"feed" | "diaper" | "sleep" | null>(null); const [childId] = useState("5ad3b16a-1e0d-45ab-bc91-038397d75d0a"); const [pendingCount, setPendingCount] = useState(0); @@ -209,18 +207,22 @@ export default function HomePage() { }, [childId]); return ( -
+
{/* Header */}
- -