forked from Priyanshukeshri/Hacktoberfest-2k22
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
26 lines (22 loc) · 743 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import NavBar from './components/NavBar';
import ToastNotification from './components/ToastNotification';
import Routes from './pages/Routes';
import { useStateContext } from './context/state';
import customTheme from './styles/customTheme';
import { useBodyStyles } from './styles/muiStyles';
import { Paper } from '@material-ui/core/';
import { ThemeProvider } from '@material-ui/core/styles';
const App = () => {
const { darkMode } = useStateContext();
const classes = useBodyStyles();
return (
<ThemeProvider theme={customTheme(darkMode)}>
<Paper className={classes.root} elevation={0}>
<ToastNotification />
<NavBar />
<Routes />
</Paper>
</ThemeProvider>
);
};
export default App;