From bdd92f2f2c4041d11f0255bdd46e58f851e99057 Mon Sep 17 00:00:00 2001 From: "Daniel S. Hansen" Date: Mon, 25 Aug 2025 15:12:20 -0700 Subject: [PATCH] Add ScrollArea to main M&E Data Entry table along with sticky header --- .../Canvas/views/AdminTabs/MEDataEntry.jsx | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/client/src/components/Canvas/views/AdminTabs/MEDataEntry.jsx b/client/src/components/Canvas/views/AdminTabs/MEDataEntry.jsx index f0f5b21..f3ee9ba 100644 --- a/client/src/components/Canvas/views/AdminTabs/MEDataEntry.jsx +++ b/client/src/components/Canvas/views/AdminTabs/MEDataEntry.jsx @@ -111,6 +111,20 @@ const items = [ female: 550, total: 1100, }, + { + id: "r6", + section: "Gas", + volcano: "Ranier", + country: "US", + start: "2024-07-02", + end: "2027-05-12", + type: "Deployment", + vpi10: "Yes", + downstream: 1200, + male: 570, + female: 570, + total: 1400, + }, ]; export function MEDataEntry() { @@ -123,22 +137,7 @@ export function MEDataEntry() { reset, watch, formState: { errors }, - } = useForm({ - defaultValues: { - id: "", - section: "", - volcano: "", - country: "", - start: "", - end: "", - type: "", - vpi10: "", - downstream: 0, - male: 0, - female: 0, - total: 0, - } - }); + } = useForm(); const onSubmit = (data) => { console.log("Form submitted:", data); @@ -201,16 +200,16 @@ export function MEDataEntry() { - + Number of people benefitting from VDAP activities, disaggregate by sex {/* */} - - + + - - {/* padding for checkboxes */} + + Section Volcano Country