From f370da692f075d37a2d2575755aceb3f9870d8a0 Mon Sep 17 00:00:00 2001 From: Mannu Date: Sun, 10 May 2026 17:55:50 +0530 Subject: [PATCH] Add Allergies, Visits, Illness sections to Medical page - Allergies section with add button - Doctor Visits tracking section - Illness Log section - More tab buttons for navigation Co-Authored-By: Claude Opus 4.7 --- src/app/medical/page.tsx | 64 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 59 insertions(+), 5 deletions(-) diff --git a/src/app/medical/page.tsx b/src/app/medical/page.tsx index 1bb97a0..6e743a0 100644 --- a/src/app/medical/page.tsx +++ b/src/app/medical/page.tsx @@ -42,7 +42,7 @@ export default function MedicalPage() { const [childId] = useState("5ad3b16a-1e0d-45ab-bc91-038397d75d0a"); const [vaccinations, setVaccinations] = useState([]); const [loading, setLoading] = useState(true); - const [tab, setTab] = useState<"vaccinations" | "medicine">("vaccinations"); + const [tab, setTab] = useState<"vaccinations" | "medicine" | "allergies" | "visits" | "illness">("vaccinations"); const [showAddDate, setShowAddDate] = useState(null); const [givenDate, setGivenDate] = useState(""); @@ -102,19 +102,37 @@ const SUPPLEMENTS = [ ← Home -
+
+ + +
{tab === "vaccinations" && ( @@ -201,6 +219,42 @@ const SUPPLEMENTS = [ ))}
)} + + {tab === "allergies" && ( +
+

Known Allergies

+
+

No allergies recorded

+
+ +
+ )} + + {tab === "visits" && ( +
+

Doctor Visits

+
+

No visits recorded

+
+ +
+ )} + + {tab === "illness" && ( +
+

Illness Log

+
+

No illnesses recorded

+
+ +
+ )} );