summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hunteman <michael@mac-mini.local>2025-01-19 11:07:54 -0600
committerMichael Hunteman <michael@mac-mini.local>2025-01-19 11:07:54 -0600
commit30529536ee5137635a9efc483baa05dac198dd0d (patch)
tree27863407f6ca4d378a3544c621df2cefee9ec217
parent07523a8e814b559e0fb300b4d9aa51d8327578c2 (diff)
Move read only fields
-rw-r--r--client/.env.development1
-rw-r--r--client/src/components/RsvpForm.tsx36
2 files changed, 19 insertions, 18 deletions
diff --git a/client/.env.development b/client/.env.development
new file mode 100644
index 0000000..0dd1e86
--- /dev/null
+++ b/client/.env.development
@@ -0,0 +1 @@
+VITE_BASE_URL=http://192.168.1.12:8080/api/
diff --git a/client/src/components/RsvpForm.tsx b/client/src/components/RsvpForm.tsx
index 84b05e0..b2af975 100644
--- a/client/src/components/RsvpForm.tsx
+++ b/client/src/components/RsvpForm.tsx
@@ -161,6 +161,24 @@ function RsvpForm() {
</FormControl>
</div>
</Grid>
+ <Grid item xs={6}>
+ <TextField
+ label="First Name"
+ variant="outlined"
+ fullWidth
+ inputProps={{ readOnly: true }}
+ {...register('firstName')}
+ />
+ </Grid>
+ <Grid item xs={6}>
+ <TextField
+ label="Last Name"
+ variant="outlined"
+ fullWidth
+ inputProps={{ readOnly: true }}
+ {...register('lastName')}
+ />
+ </Grid>
<Grid item xs={8}>
<TextField
label="Email"
@@ -214,24 +232,6 @@ function RsvpForm() {
{...register('message')}
/>
</Grid>
- <Grid item xs={6}>
- <TextField
- label="First Name"
- variant="outlined"
- fullWidth
- inputProps={{ readOnly: true }}
- {...register('firstName')}
- />
- </Grid>
- <Grid item xs={6}>
- <TextField
- label="Last Name"
- variant="outlined"
- fullWidth
- inputProps={{ readOnly: true }}
- {...register('lastName')}
- />
- </Grid>
{fields.map((field, index) => {
return (
<Grid