aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
blob: 6c33db4b786d906c01845883a3880aa6c243ba82 (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
42
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 Page from './containers/Page/Page';
import { AuthProvider } from './hooks/useAuth';


const theme = createMuiTheme({
  palette: {
    primary: {
      main: teal[700],
      light: teal[100]
    },
    secondary: {
      main: teal[900]
    }
  }
});


const App: React.FC = () => {
  return (
    <BrowserRouter>
      <AuthProvider>
        <ThemeProvider theme={theme}>
          <CssBaseline />
          <Header />
          <Page />
        </ThemeProvider>
      </AuthProvider>
    </BrowserRouter>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));