Skip to content

Commit

Permalink
feat: move display name to the top of sign up page
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceau committed Jun 24, 2021
1 parent 49239bd commit 762f618
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/renderer/containers/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,8 @@ export const LoginForm: React.FC<LoginFormProps> = ({
void execute();
}}
>
<Grid container alignItems="flex-end">
<Grid item md={true} sm={true} xs={true}>
<TextField
disabled={loading}
label="Email"
variant="filled"
value={email}
autoFocus={!disableAutoFocus}
fullWidth={true}
required={true}
onChange={(e) => setEmail(e.target.value)}
InputLabelProps={{
classes: {
root: classes.cssLabel,
},
}}
/>
</Grid>
</Grid>
{isSignUp && (
<Grid container alignItems="flex-end" style={{ marginTop: 15 }}>
<Grid container alignItems="flex-end">
<Grid item md={true} sm={true} xs={true}>
<TextField
disabled={loading}
Expand All @@ -139,6 +120,25 @@ export const LoginForm: React.FC<LoginFormProps> = ({
</Grid>
</Grid>
)}
<Grid container alignItems="flex-end" style={{ marginTop: 15 }}>
<Grid item md={true} sm={true} xs={true}>
<TextField
disabled={loading}
label="Email"
variant="filled"
value={email}
autoFocus={!disableAutoFocus}
fullWidth={true}
required={true}
onChange={(e) => setEmail(e.target.value)}
InputLabelProps={{
classes: {
root: classes.cssLabel,
},
}}
/>
</Grid>
</Grid>
<Grid container alignItems="flex-end" style={{ marginTop: 15 }}>
<Grid item md={true} sm={true} xs={true}>
<TextField
Expand Down

0 comments on commit 762f618

Please sign in to comment.