From 15cc1aea1688066fb0ecd2369984a3d036f275e6 Mon Sep 17 00:00:00 2001 From: sonika <> Date: Wed, 30 Aug 2023 11:05:44 +0530 Subject: [PATCH] Css changing --- src/Components/Helper/AddNewTable.tsx | 2 +- .../PatientForm/FamilyFormSection2.tsx | 9 ++++--- .../PatientForm/MedicalHistorySection3.tsx | 2 +- src/Components/PatientForm/OtherDetails8.tsx | 24 +++++++++---------- src/Components/PatientForm/PastTreatment5.tsx | 9 ++++--- .../PatientForm/PersonalSection1.tsx | 16 ++++++------- .../RecreationalHobbiesSection7.tsx | 18 +++++++------- 7 files changed, 41 insertions(+), 39 deletions(-) diff --git a/src/Components/Helper/AddNewTable.tsx b/src/Components/Helper/AddNewTable.tsx index d9dc0cc..d7df8aa 100644 --- a/src/Components/Helper/AddNewTable.tsx +++ b/src/Components/Helper/AddNewTable.tsx @@ -55,7 +55,7 @@ const DataTable: React.FC= () => { return ( <> - Please enter the details below:

+ If yes, Please enter the details below:

diff --git a/src/Components/PatientForm/FamilyFormSection2.tsx b/src/Components/PatientForm/FamilyFormSection2.tsx index abefeeb..8804bfe 100644 --- a/src/Components/PatientForm/FamilyFormSection2.tsx +++ b/src/Components/PatientForm/FamilyFormSection2.tsx @@ -89,6 +89,7 @@ export default function FamilyFormSection(){ - + Family history and health status:

- + How do you sleep? - + Do you use a pillow? - + Do you wear orthotics or arch support? - - Date of last gynecological and brest exam?

+ + Date of last gynecological and brest exam? -

+ { @@ -130,11 +130,11 @@ export default function OtherDetails8(){
- + {/* For X-Ray purposes: - + */} - + Possible pregnancy? - + Date of last menstrual cycle?

-

+ { diff --git a/src/Components/PatientForm/PastTreatment5.tsx b/src/Components/PatientForm/PastTreatment5.tsx index 10f93fe..4268ffc 100644 --- a/src/Components/PatientForm/PastTreatment5.tsx +++ b/src/Components/PatientForm/PastTreatment5.tsx @@ -233,6 +233,10 @@ export default function PastTreatment5(){
+ + + + Please list current supplements or drugs you may be taking: - - -
- - diff --git a/src/Components/PatientForm/PersonalSection1.tsx b/src/Components/PatientForm/PersonalSection1.tsx index 87b2686..0df9c11 100644 --- a/src/Components/PatientForm/PersonalSection1.tsx +++ b/src/Components/PatientForm/PersonalSection1.tsx @@ -25,14 +25,14 @@ interface Patient { fullName: yup.string().required("Full name is required"), homePhone: yup.string().matches(/^\d{10}$/, "Home phone must be 10 digits"), cellPhone: yup.string().required("Phone number is required").matches(/^\d{10}$/, "Cell phone must be 10 digits"), - email: yup.string().email("Invalid email format").required("Email is required"), + email: yup.string().required("Email is required"), age: yup.number().positive().integer("Age must be a positive integer").required("Age is required"), dateOfBirth: yup.date().required("Date of birth is required"), socialSecurityNumber: yup.string().matches(/^\d{9}$/, "Social security number must be 9 digits"), mailingAddress: yup.string().required("Mailing address is required"), city: yup.string().required("City is required"), state: yup.string().required("State is required"), - zipCode: yup.string().matches(/^\d{5}$/, "Zip code must be 6 digits").required("Zip code is required") + zipCode: yup.string().matches(/^\d{6}$/, "Zip code must be 6 digits").required("Zip code is required") }); export default function PersonalSection(){ @@ -78,6 +78,7 @@ export default function PersonalSection(){ }); const handleChange = (event: React.ChangeEvent) => { + console.log("dsfsdfsdf",event.target.value) const { name, value } = event.target; setPatient((prevPatient) => ({ ...prevPatient, @@ -120,7 +121,7 @@ export default function PersonalSection(){ @@ -212,8 +212,8 @@ export default function PersonalSection(){ value={formik.values.state} onChange={formik.handleChange} onBlur={formik.handleBlur} - error={formik.touched.state && Boolean(formik.errors.state)} - helperText={formik.touched.state && formik.errors.state} + // error={formik.touched.state && Boolean(formik.errors.state)} + // helperText={formik.touched.state && formik.errors.state} /> diff --git a/src/Components/PatientForm/RecreationalHobbiesSection7.tsx b/src/Components/PatientForm/RecreationalHobbiesSection7.tsx index 1ada2c0..2a860fd 100644 --- a/src/Components/PatientForm/RecreationalHobbiesSection7.tsx +++ b/src/Components/PatientForm/RecreationalHobbiesSection7.tsx @@ -47,7 +47,7 @@ export default function RecreationalHobbiesSection7(){ <> - + Recreational Activities/Hobbies:

- + Do you excercise? - + Use tobacco? - + Consume alcohol? - + Have a healthy diet? - + Get adequate sleep? - + Is Work/School stressful to you? - + Family life stressful to you? - + Use recreational drugs?