-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.js
44 lines (41 loc) · 1.11 KB
/
index.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import DateFnsUtils from "@date-io/date-fns";
import store from "./src/redux/store";
import "@material-ui/core";
import "@material-ui/icons";
import { MuiThemeProvider, createMuiTheme } from "@material-ui/core";
import { StylesProvider } from '@material-ui/styles';
import { MuiPickersUtilsProvider } from "@material-ui/pickers";
import { teal } from "@material-ui/core/colors";
// main app
import App from "./src/App";
const theme = createMuiTheme({
palette: {
primary: teal,
secondary: teal
},
typography: {
fontFamily: '"Roboto", sans-serif',
body1: {
fontWeight: 300
},
h6: {
fontSize: 16
}
}
});
document.querySelector('title').innerHTML=REACT_APP_SITE_TITLE;
ReactDOM.render(
<Provider store={store}>
<StylesProvider injectFirst>
<MuiThemeProvider theme={theme}>
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<App />
</MuiPickersUtilsProvider>
</MuiThemeProvider>
</StylesProvider>
</Provider>,
document.getElementById("app")
);