diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-06-12 10:12:31 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-06-12 10:12:31 +0530 |
commit | 94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9 (patch) | |
tree | 3a416c82c71d71adf661c65e937047c78b986a95 /modern/src/components | |
parent | b897b8027613ca1fc65d87c70a55860cfd339583 (diff) | |
parent | 6936f6debf0e122feae8caca0547a7949f05ff6f (diff) | |
download | trackermap-web-94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9.tar.gz trackermap-web-94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9.tar.bz2 trackermap-web-94b0d73ce01f9c437e2fa9b0dfafca5bcb86f2e9.zip |
Merge branch 'master' into reports
Diffstat (limited to 'modern/src/components')
-rw-r--r-- | modern/src/components/registration/LoginForm.js | 12 |
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 |