From 1933169026e948fc5ae68bb7bac0fbfe156d0939 Mon Sep 17 00:00:00 2001 From: awlfccamp Date: Wed, 23 Oct 2024 09:13:18 -0500 Subject: [PATCH] update question and date picker --- .../components/presentational/newUserForm.jsx | 26 ++++++++++++------- client/src/pages/CheckInForm.jsx | 3 +++ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/client/src/components/presentational/newUserForm.jsx b/client/src/components/presentational/newUserForm.jsx index 56612696a..b2f37dbc7 100644 --- a/client/src/components/presentational/newUserForm.jsx +++ b/client/src/components/presentational/newUserForm.jsx @@ -1,4 +1,4 @@ -import React from "react"; +import React from 'react'; const NewUserForm = (props) => { return ( @@ -50,14 +50,18 @@ const NewUserForm = (props) => { aria-label="Email Address" required /> - + {props.questions.length !== 0 && props.questions.map((question) => { return ( - question.type === "text" && ( + question.type === 'text' && (
{ ? props.formInput[ question.htmlName.toString() ].toString() - : "" + : '' } onChange={props.handleInputChange} required /> - +
) @@ -86,11 +92,11 @@ const NewUserForm = (props) => { {props.questions.length !== 0 && props.questions.map((question) => { return ( - question.type === "select" && ( + question.type === 'select' && (
{ : props.questions.length !== 0 && props.questions.map((question) => { return ( - question.htmlName === "attendanceLength" && ( + question.htmlName === 'attendanceLength' && (