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/LoginLayout.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/LoginLayout.js')
-rw-r--r-- | modern/src/login/LoginLayout.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/modern/src/login/LoginLayout.js b/modern/src/login/LoginLayout.js index 83a87500..8f2ee6ca 100644 --- a/modern/src/login/LoginLayout.js +++ b/modern/src/login/LoginLayout.js @@ -2,7 +2,7 @@ import React from 'react'; import { useMediaQuery, Paper } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; import { useTheme } from '@mui/material/styles'; -import logoSvg from '../resources/images/logo.svg'; +import LogoImage from './LogoImage'; const useStyles = makeStyles((theme) => ({ root: { @@ -13,7 +13,6 @@ const useStyles = makeStyles((theme) => ({ display: 'flex', justifyContent: 'center', alignItems: 'center', - color: theme.palette.secondary.contrastText, background: theme.palette.primary.main, paddingBottom: theme.spacing(5), width: theme.dimensions.sidebarWidth, @@ -49,11 +48,7 @@ const LoginLayout = ({ children }) => { return ( <main className={classes.root}> <div className={classes.sidebar}> - {!useMediaQuery(theme.breakpoints.down('lg')) && ( - <svg height="64" width="240"> - <use xlinkHref={`${logoSvg}#img`} /> - </svg> - )} + {!useMediaQuery(theme.breakpoints.down('lg')) && <LogoImage color={theme.palette.secondary.contrastText} />} </div> <Paper className={classes.paper}> <form className={classes.form}> |