-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
index.tsx
59 lines (56 loc) · 1.25 KB
/
index.tsx
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import React from "react";
import { createRoot } from "react-dom/client";
import { Router } from "react-router-dom";
import { createTheme, StyledEngineProvider } from "@mui/material";
import { ThemeProvider } from "@mui/material/styles";
import App from "./containers/App";
import { history } from "./utils/historyUtils";
const theme = createTheme({
palette: {
secondary: {
main: "#fff",
},
},
typography: {
// htmlFontSize: 18.285714285714286,
fontSize: 14 * 0.875,
body1: {
lineHeight: 1.43,
letterSpacing: "0.01071em",
},
},
components: {
MuiOutlinedInput: {
styleOverrides: {
input: {
padding: "6px 0 7px",
},
},
},
MuiInputBase: {
styleOverrides: {
input: {
padding: "6px 0 7px",
},
},
},
// MuiInput: {
// defaultProps: {
// inputProps: {
// backgroundColor: "green",
// height: "300px",
// },
// },
// },
},
});
const root = createRoot(document.getElementById("root")!);
root.render(
<Router history={history}>
<StyledEngineProvider injectFirst>
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
</StyledEngineProvider>
</Router>
);