UI: Use login theme everywhere

This commit is contained in:
Deluan
2020-01-23 18:12:26 -05:00
parent 3cc6d9de30
commit 35aeb0a396
4 changed files with 15 additions and 7 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ import LockIcon from '@material-ui/icons/Lock'
import { Notification, useLogin, useNotify, useTranslate } from 'react-admin'
import { lightTheme } from './themes'
import { LightTheme } from './Themes'
const useStyles = makeStyles((theme) => ({
main: {
@@ -171,7 +171,7 @@ Login.propTypes = {
// Because otherwise the useStyles() hook used in Login won't get
// the right theme
const LoginWithTheme = (props) => (
<ThemeProvider theme={createMuiTheme(lightTheme)}>
<ThemeProvider theme={createMuiTheme(LightTheme)}>
<Login {...props} />
</ThemeProvider>
)