aboutsummaryrefslogtreecommitdiff
path: root/modern/src/LoginPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-25 12:36:19 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-25 12:36:19 -0700
commitd69bb2b2c3053c2c61e4e5d7029751debcfb0dd9 (patch)
treea8acdb87aea6c39ba1c0712186a2be1dadaff181 /modern/src/LoginPage.js
parent94be29b98ef9ca509c38c2576dc56828a788937e (diff)
downloadtrackermap-web-d69bb2b2c3053c2c61e4e5d7029751debcfb0dd9.tar.gz
trackermap-web-d69bb2b2c3053c2c61e4e5d7029751debcfb0dd9.tar.bz2
trackermap-web-d69bb2b2c3053c2c61e4e5d7029751debcfb0dd9.zip
Implement simple route report
Diffstat (limited to 'modern/src/LoginPage.js')
-rw-r--r--modern/src/LoginPage.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/modern/src/LoginPage.js b/modern/src/LoginPage.js
index 68ac31f0..429a6e6f 100644
--- a/modern/src/LoginPage.js
+++ b/modern/src/LoginPage.js
@@ -79,40 +79,40 @@ const LoginPage = () => {
return (
<main className={classes.root}>
<Paper className={classes.paper}>
- <img className={classes.logo} src="/logo.svg" alt="Traccar" />
+ <img className={classes.logo} src='/logo.svg' alt='Traccar' />
<form onSubmit={handleLogin}>
<TextField
- margin="normal"
+ margin='normal'
required
fullWidth
error={failed}
label={t('userEmail')}
- name="email"
+ name='email'
value={email}
- autoComplete="email"
+ autoComplete='email'
autoFocus
onChange={handleEmailChange}
helperText={failed && 'Invalid username or password'} />
<TextField
- margin="normal"
+ margin='normal'
required
fullWidth
error={failed}
label={t('userPassword')}
- name="password"
+ name='password'
value={password}
- type="password"
- autoComplete="current-password"
+ type='password'
+ autoComplete='current-password'
onChange={handlePasswordChange} />
- <FormControl fullWidth margin="normal">
+ <FormControl fullWidth margin='normal'>
<div className={classes.buttons}>
- <Button type="button" variant="contained" disabled onClick={handleRegister}>
+ <Button type='button' variant='contained' disabled onClick={handleRegister}>
{t('loginRegister')}
</Button>
- <Button type="submit" variant="contained" color="primary" disabled={!email || !password}>
+ <Button type='submit' variant='contained' color='primary' disabled={!email || !password}>
{t('loginLogin')}
</Button>
</div>