forked from hackforla/311-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsx
33 lines (30 loc) · 1017 Bytes
/
index.jsx
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
27
28
29
30
31
32
33
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles';
import { CssBaseline } from '@mui/material';
import DbProvider from '@db/DbProvider';
import theme from '@theme/theme';
import store from '@root/redux/store';
import App from '@root/App';
if (import.meta.env.DEV && !import.meta.env.VITE_MAPBOX_TOKEN) {
alert('Missing Mapbox token. Please run `npm run setup`.')
}
// Expose theme to debugging console like on mui.com.
// https://mui.com/material-ui/customization/typography/#default-values
window.theme = theme;
ReactDOM.render(
<Provider store={store}>
<DbProvider>
<StyledEngineProvider injectFirst>
<ThemeProvider theme={theme}>
<CssBaseline />
<App />
</ThemeProvider>
</StyledEngineProvider>
</DbProvider>
</Provider>,
document.getElementById('root'),
);