diff options
author | Michael Hunteman <michael@huntm.net> | 2024-03-19 18:20:20 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-03-19 18:20:20 -0700 |
commit | 9617c5c034a650bb0b1113781b4a6e7ca19b0193 (patch) | |
tree | 5687a0d412bc1274ef8b53840b88fee7aaf84ebd | |
parent | 288214312525e5a23d44f20c952ae9098f902b49 (diff) |
Fix party list on mobile
-rw-r--r-- | src/components/RsvpForm.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/RsvpForm.tsx b/src/components/RsvpForm.tsx index 7173f32..bde5280 100644 --- a/src/components/RsvpForm.tsx +++ b/src/components/RsvpForm.tsx @@ -77,9 +77,6 @@ function RsvpForm() { ) ); setPreviousPartySize(partySize); - } else { - // TODO: use react-hook-form setError - console.log('error'); } }; @@ -131,6 +128,7 @@ function RsvpForm() { <Grid item xs={12} md={6} lg={6}> <TextField label="Email" + type="email" variant="outlined" fullWidth error={!!errors.email} @@ -178,7 +176,7 @@ function RsvpForm() { {fields.map((field, index) => { return ( <Grid container item columnSpacing={2} key={field.id}> - <Grid item xs={12} md={6} lg={6}> + <Grid item xs={6}> <TextField label="First Name" variant="outlined" @@ -191,7 +189,7 @@ function RsvpForm() { })} /> </Grid> - <Grid item xs={12} md={6} lg={6}> + <Grid item xs={6}> <TextField label="Last Name" variant="outlined" |