summaryrefslogtreecommitdiff
path: root/client/src/components/RsvpForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/RsvpForm.tsx')
-rw-r--r--client/src/components/RsvpForm.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/client/src/components/RsvpForm.tsx b/client/src/components/RsvpForm.tsx
index 8596e29..71ae7d0 100644
--- a/client/src/components/RsvpForm.tsx
+++ b/client/src/components/RsvpForm.tsx
@@ -118,7 +118,7 @@ function RsvpForm() {
</FormControl>
</div>
</Grid>
- <Grid item xs={12} md={6} lg={6}>
+ <Grid item xs={9}>
<TextField
label="Email"
type="email"
@@ -127,7 +127,6 @@ function RsvpForm() {
error={!!errors.email}
helperText={errors.email?.message}
{...register('email', {
- required: 'This field is required',
pattern: {
value: /\S+@\S+\.\S+/,
message: 'Please enter a valid email address',
@@ -135,7 +134,7 @@ function RsvpForm() {
})}
/>
</Grid>
- <Grid item xs={12} md={6} lg={6}>
+ <Grid item xs={3}>
<TextField
label="Party Size"
type="number"
@@ -178,7 +177,7 @@ function RsvpForm() {
rowSpacing={{ xs: 1 }}
key={field.id}
>
- <Grid item xs={12} md={6} lg={6}>
+ <Grid item xs={6}>
<TextField
label="First Name"
variant="outlined"
@@ -191,7 +190,7 @@ function RsvpForm() {
})}
/>
</Grid>
- <Grid item xs={12} md={6} lg={6}>
+ <Grid item xs={6}>
<TextField
label="Last Name"
variant="outlined"