aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/registration/LoginForm.js
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-06-12 10:12:31 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-06-12 10:12:31 +0530
commit94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9 (patch)
tree3a416c82c71d71adf661c65e937047c78b986a95 /modern/src/components/registration/LoginForm.js
parentb897b8027613ca1fc65d87c70a55860cfd339583 (diff)
parent6936f6debf0e122feae8caca0547a7949f05ff6f (diff)
downloadtrackermap-web-94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9.tar.gz
trackermap-web-94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9.tar.bz2
trackermap-web-94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9.zip
Merge branch 'master' into reports
Diffstat (limited to 'modern/src/components/registration/LoginForm.js')
-rw-r--r--modern/src/components/registration/LoginForm.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/modern/src/components/registration/LoginForm.js b/modern/src/components/registration/LoginForm.js
index 6469b31b..235f0efa 100644
--- a/modern/src/components/registration/LoginForm.js
+++ b/modern/src/components/registration/LoginForm.js
@@ -11,6 +11,7 @@ import ResetPasswordForm from './ResetPasswordForm';
const useStyles = makeStyles(theme => ({
logoContainer: {
textAlign: 'center',
+ color: theme.palette.primary.main,
},
resetPassword: {
cursor: 'pointer',
@@ -28,7 +29,6 @@ const LoginForm = ({ setCurrentForm }) => {
const dispatch = useDispatch();
const history = useHistory();
const theme = useTheme();
- const matches = useMediaQuery(theme.breakpoints.down('md'));
const [failed, setFailed] = useState(false);
const [email, setEmail] = useState('');
@@ -58,9 +58,13 @@ const LoginForm = ({ setCurrentForm }) => {
return (
<Grid container direction='column' spacing={3}>
- <Grid item className={classes.logoContainer}>
- {matches && <img src='/logo.svg' alt='Traccar' />}
- </Grid>
+ {useMediaQuery(theme.breakpoints.down('md')) &&
+ <Grid item className={classes.logoContainer}>
+ <svg height="64" width="240">
+ <use xlinkHref="/logo.svg#img"></use>
+ </svg>
+ </Grid>
+ }
<Grid item>
<TextField
required