diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-06 11:40:07 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-06 11:40:07 -0700 |
commit | 15c780b0e08062328e3708e38f47c3361da1f345 (patch) | |
tree | 8162c6cf042ff4e6488013c92ce888fd46c90932 /modern/src/login/LoginPage.js | |
parent | 1a4086a8bbca15a5f197f2f4ead79d9dd045f251 (diff) | |
download | trackermap-web-15c780b0e08062328e3708e38f47c3361da1f345.tar.gz trackermap-web-15c780b0e08062328e3708e38f47c3361da1f345.tar.bz2 trackermap-web-15c780b0e08062328e3708e38f47c3361da1f345.zip |
Better logo handling
Diffstat (limited to 'modern/src/login/LoginPage.js')
-rw-r--r-- | modern/src/login/LoginPage.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js index 87192a3f..e3b5f39b 100644 --- a/modern/src/login/LoginPage.js +++ b/modern/src/login/LoginPage.js @@ -12,8 +12,8 @@ import { sessionActions } from '../store'; import { useLocalization, useTranslation } from '../common/components/LocalizationProvider'; import LoginLayout from './LoginLayout'; import usePersistedState from '../common/util/usePersistedState'; -import logoSvg from '../resources/images/logo.svg'; import { nativePostMessage } from '../common/components/NativeInterface'; +import LogoImage from './LogoImage'; const useStyles = makeStyles((theme) => ({ options: { @@ -26,10 +26,6 @@ const useStyles = makeStyles((theme) => ({ flexDirection: 'column', gap: theme.spacing(2), }, - logoContainer: { - textAlign: 'center', - color: theme.palette.primary.main, - }, extraContainer: { display: 'flex', gap: theme.spacing(2), @@ -105,13 +101,7 @@ const LoginPage = () => { )} </div> <div className={classes.container}> - {useMediaQuery(theme.breakpoints.down('lg')) && ( - <div className={classes.logoContainer}> - <svg height="64" width="240"> - <use xlinkHref={`${logoSvg}#img`} /> - </svg> - </div> - )} + {useMediaQuery(theme.breakpoints.down('lg')) && <LogoImage color={theme.palette.primary.main} />} <TextField required error={failed} |