diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-23 07:19:30 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-23 07:19:30 -0700 |
commit | 85461684eb402d4df62c8b59e0a0f627bd3487c1 (patch) | |
tree | 6ce2832da2f07d8ea0d54d6ce5f30ab9efc7edaa /modern/src/login/LoginPage.js | |
parent | ddcb42512e95e98806db0523e4d954484a6e48cc (diff) | |
download | trackermap-web-85461684eb402d4df62c8b59e0a0f627bd3487c1.tar.gz trackermap-web-85461684eb402d4df62c8b59e0a0f627bd3487c1.tar.bz2 trackermap-web-85461684eb402d4df62c8b59e0a0f627bd3487c1.zip |
Initial migration to MUI 5
Diffstat (limited to 'modern/src/login/LoginPage.js')
-rw-r--r-- | modern/src/login/LoginPage.js | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js index 2a911b84..4478c866 100644 --- a/modern/src/login/LoginPage.js +++ b/modern/src/login/LoginPage.js @@ -1,10 +1,22 @@ import React, { useState } from 'react'; import { - Grid, useMediaQuery, makeStyles, InputLabel, Select, MenuItem, FormControl, Button, TextField, Link, Snackbar, IconButton, Tooltip, -} from '@material-ui/core'; -import CloseIcon from '@material-ui/icons/Close'; -import CachedIcon from '@material-ui/icons/Cached'; -import { useTheme } from '@material-ui/core/styles'; + Grid, + useMediaQuery, + InputLabel, + Select, + MenuItem, + FormControl, + Button, + TextField, + Link, + Snackbar, + IconButton, + Tooltip, +} from '@mui/material'; +import makeStyles from '@mui/styles/makeStyles'; +import CloseIcon from '@mui/icons-material/Close'; +import CachedIcon from '@mui/icons-material/Cached'; +import { useTheme } from '@mui/material/styles'; import { useDispatch, useSelector } from 'react-redux'; import { useNavigate } from 'react-router-dom'; import { sessionActions } from '../store'; @@ -77,12 +89,15 @@ const LoginPage = () => { return ( <LoginLayout> <Tooltip title="Switch to Legacy App" className={classes.legacy}> - <IconButton onClick={() => window.localStorage.setItem('legacyApp', true) || window.location.replace('/')}> + <IconButton + size="large" + onClick={() => window.localStorage.setItem('legacyApp', true) || window.location.replace('/')} + > <CachedIcon /> </IconButton> </Tooltip> <Grid container direction="column" spacing={2}> - {useMediaQuery(theme.breakpoints.down('md')) + {useMediaQuery(theme.breakpoints.down('lg')) && ( <Grid item className={classes.logoContainer}> <svg height="64" width="240"> |