-
setGoal({ ...goal, weightKg: parseFloat(e.target.value) || undefined })}
- />
-
setGoal({ ...goal, heightCm: parseFloat(e.target.value) || undefined })}
- />
-
-
-
-
+
+
🎯 Growth Goals
+
setGoal({ ...goal, weightKg: parseFloat(e.target.value) || undefined })}
+ />
+
setGoal({ ...goal, heightCm: parseFloat(e.target.value) || undefined })}
+ />
+
+
+
-
+
+ )}
+
+ {/* Add / Edit Measurement — always at the top, right below the header */}
+ {showAdd && (
+
)}
{/* Latest Reading Card */}
{latest && (
-
+
Latest Reading
@@ -438,7 +489,7 @@ export default function GrowthPage() {
{/* WHO Standards + Chart Card - Collapsible */}
{child && standard && (
-
+
{/* WHO Standards Header - Clickable */}
)}
- {/* Add Measurement - Same pattern as Goals */}
- {showAdd && latest && (
-
- )}
{/* Empty State */}
{loading ? (
@@ -593,19 +618,19 @@ export default function GrowthPage() {
Loading...
) : growthData.length === 0 ? (
-
-
-
📏
-
Track {child?.name}'s Growth
-
- Start logging weight, height, and head measurements to see how {child?.name} is growing compared to WHO standards.
-
-
-
-
+
+
📏
+
Track {child?.name}'s Growth
+
+ Log weight, height, and head measurements to see how {child?.name} compares to WHO standards.
+
+
+
) : (
/* History List - Collapsible */
-
+