diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-01-28 12:28:02 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-01-28 12:30:26 +0300 |
commit | 9eef9ddf780d5c6e3cbd5d74a9794bab4b5e2f11 (patch) | |
tree | 04d35ed1c7def5fd10ae1f37a55d1ec5143b955f | |
parent | 9e7d76ec0360208f3333a7af61bd0e5ddeecfba4 (diff) | |
download | react-benzin-9eef9ddf780d5c6e3cbd5d74a9794bab4b5e2f11.tar.gz |
feat: add CssBaseline to BenzinThemeProvider
-rw-r--r-- | src/index.js | 3 | ||||
-rw-r--r-- | src/lib/components/BenzinThemeProvider/BenzinThemeProvider.js | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index 6fca3b6..1aec963 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import ReactDOM from 'react-dom'; -import { CssBaseline, makeStyles, Button } from '@material-ui/core'; +import { makeStyles, Button } from '@material-ui/core'; import { BenzinThemeProvider, @@ -40,7 +40,6 @@ const App = () => { return ( <BenzinThemeProvider> - <CssBaseline /> <Header logo={{ icon: Icon1, diff --git a/src/lib/components/BenzinThemeProvider/BenzinThemeProvider.js b/src/lib/components/BenzinThemeProvider/BenzinThemeProvider.js index 6218308..8e52ed4 100644 --- a/src/lib/components/BenzinThemeProvider/BenzinThemeProvider.js +++ b/src/lib/components/BenzinThemeProvider/BenzinThemeProvider.js @@ -1,5 +1,6 @@ import React from 'react'; import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles'; +import { CssBaseline } from '@material-ui/core'; import 'typeface-roboto'; @@ -29,6 +30,7 @@ const benzinTheme = createMuiTheme({ const BenzinThemeProvider = ({ children }) => ( <ThemeProvider theme={benzinTheme}> + <CssBaseline /> {children} </ThemeProvider> ); |