From d0c6abe69086e7e0ac0d0a11ea2ab4b003b09977 Mon Sep 17 00:00:00 2001 From: Meghan McLaughlin Date: Fri, 10 Apr 2020 12:16:38 -0500 Subject: [PATCH] changed money input to number input; removed redundant Lists --- pwa/src/components/PatientInfoForm.tsx | 49 +++++++++++--------------- 1 file changed, 20 insertions(+), 29 deletions(-) diff --git a/pwa/src/components/PatientInfoForm.tsx b/pwa/src/components/PatientInfoForm.tsx index be4bf60..b7db88e 100644 --- a/pwa/src/components/PatientInfoForm.tsx +++ b/pwa/src/components/PatientInfoForm.tsx @@ -2,6 +2,7 @@ import React, { ReactElement, useState } from 'react' import { DatePicker, InputItem, List, TextareaItem, Button, Radio } from 'antd-mobile' import enUs from 'antd-mobile/lib/date-picker/locale/en_US'; import '../scss/Login.scss' + const RadioItem = Radio.RadioItem; @@ -41,8 +42,6 @@ export default function Form(): ReactElement { { value: 1, label: 'Yes' }, ]; - // TODO - get rid of the "money" input type - return (
Age Phone @@ -119,7 +115,7 @@ export default function Form(): ReactElement { ))} - {/* Only display the following div if the patient is female */} + {/* Only display the female-only div if the patient is female */} {sex ?
'Pregnant?'}> @@ -130,16 +126,19 @@ export default function Form(): ReactElement { ))} - - - */} - Weight (kg) Height (cm) BP + + Temp (F) Pulse Z-Score - {/* TODO: figure out how to access these values from the money keyboard */} - 'Albendazole?'}> {radioYesNo.map(i => (