blob: 64b17603438143c55a353981788587250f38e117 (
plain)
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
|
import React from 'react';
import ReactDOM from 'react-dom';
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
import { CssBaseline } from '@material-ui/core';
import { BrowserRouter } from 'react-router-dom';
import teal from '@material-ui/core/colors/teal';
import 'typeface-roboto';
import Header from './components/Header/Header';
import ScrollTopArrow from './components/ScrollTopArrow/ScrollTopArrow';
import Page from './pages/Page';
import { AuthProvider } from './hooks/useAuth';
const theme = createMuiTheme({
palette: {
primary: {
main: teal[700],
light: teal[100]
}
}
});
const App: React.FC = () => {
return (
<BrowserRouter>
<AuthProvider>
<ThemeProvider theme={theme}>
<CssBaseline />
<Header />
<Page />
<ScrollTopArrow />
</ThemeProvider>
</AuthProvider>
</BrowserRouter>
);
};
ReactDOM.render(<App />, document.getElementById('root'));
|