summaryrefslogtreecommitdiff
path: root/client/src/components/GuestLogin.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-08-02 14:42:14 -0700
committerMichael Hunteman <michael@huntm.net>2024-08-02 14:42:14 -0700
commit9a3c5e1781de7f05e3d54fb68d71e58b215709e0 (patch)
tree4f18ceb7ffa497c8dbf1eaddf98224b99c91a75c /client/src/components/GuestLogin.tsx
parent8007b05805d5947ef008a79885ba0b890f67c25d (diff)
Update spacing
Diffstat (limited to 'client/src/components/GuestLogin.tsx')
-rw-r--r--client/src/components/GuestLogin.tsx66
1 files changed, 36 insertions, 30 deletions
diff --git a/client/src/components/GuestLogin.tsx b/client/src/components/GuestLogin.tsx
index 16b4478..c5eae75 100644
--- a/client/src/components/GuestLogin.tsx
+++ b/client/src/components/GuestLogin.tsx
@@ -46,40 +46,46 @@ function GuestLogin() {
>
<div
style={{
- width: 384,
- marginTop: 128,
- marginLeft: '0.5rem',
- marginRight: '0.5rem',
display: 'flex',
- flexDirection: 'column',
justifyContent: 'center',
- alignItems: 'center',
+ width: '90%',
}}
>
- <Typography variant="h6">Guest Login</Typography>
- <TextField
- label="First Name"
- variant="outlined"
- margin="normal"
- fullWidth
- error={!!errors.firstName}
- helperText={errors.firstName?.message}
- required
- {...register('firstName', { required: 'This field is required' })}
- />
- <TextField
- label="Last Name"
- variant="outlined"
- margin="normal"
- fullWidth
- error={!!errors.lastName}
- helperText={errors.lastName?.message}
- required
- {...register('lastName', { required: 'This field is required' })}
- />
- <Button type="submit" variant="contained" fullWidth sx={{ mt: 2 }}>
- Log in
- </Button>
+ <div
+ style={{
+ width: 384,
+ marginTop: 128,
+ display: 'flex',
+ flexDirection: 'column',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <Typography variant="h6">Guest Login</Typography>
+ <TextField
+ label="First Name"
+ variant="outlined"
+ margin="normal"
+ fullWidth
+ error={!!errors.firstName}
+ helperText={errors.firstName?.message}
+ required
+ {...register('firstName', { required: 'This field is required' })}
+ />
+ <TextField
+ label="Last Name"
+ variant="outlined"
+ margin="normal"
+ fullWidth
+ error={!!errors.lastName}
+ helperText={errors.lastName?.message}
+ required
+ {...register('lastName', { required: 'This field is required' })}
+ />
+ <Button type="submit" variant="contained" fullWidth sx={{ mt: 2 }}>
+ Log in
+ </Button>
+ </div>
</div>
</form>
);