Skip to content

Commit

Permalink
Lighthouse optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Nov 7, 2020
1 parent 3d4625f commit cea5092
Showing 1 changed file with 33 additions and 23 deletions.
56 changes: 33 additions & 23 deletions src/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,39 @@ export default function Login() {
</Alert>
</Snackbar>
<Card>
<CardContent>
<Typography variant='h4'>Login</Typography>
<TextField
label='Username'
className={classes.field}
onChange={e => setUsername(e.target.value)}
/>
<TextField
label='Password'
type='password'
className={classes.field}
onChange={e => setPassword(e.target.value)}
/>
</CardContent>
<CardActions>
<Button
color='primary'
className={classes.field}
onClick={handleLogin}
>
Login
</Button>
</CardActions>
<form>
<CardContent>
<Typography variant='h4'>Login</Typography>
<TextField
label='Username'
InputLabelProps={{
htmlFor: 'username'
}}
id='username'
className={classes.field}
onChange={e => setUsername(e.target.value)}
/>
<TextField
label='Password'
type='password'
InputLabelProps={{
htmlFor: 'password'
}}
id='password'
className={classes.field}
onChange={e => setPassword(e.target.value)}
/>
</CardContent>
<CardActions>
<Button
color='primary'
className={classes.field}
onClick={handleLogin}
>
Login
</Button>
</CardActions>
</form>
</Card>
</React.Fragment>
);
Expand Down

0 comments on commit cea5092

Please sign in to comment.