blob: 0ad62e072a832af7b6f1d4651b3fdc6bcadafc55 (
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
|
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
import { CssBaseline } from '@material-ui/core';
import teal from '@material-ui/core/colors/teal';
import 'typeface-roboto';
import Header from './Header/Header';
import PollCard from './PollCard/PollCard';
const theme = createMuiTheme({
palette: {
primary: {
main: teal[700],
},
text: {
primary: '#000000',
secondary: 'rgba(255, 255, 255, 0.6)',
},
},
});
const App: React.FC = () => {
const [page, setPage] = useState('feed');
return (
<ThemeProvider theme={theme}>
<CssBaseline />
<Header page={page} setPage={setPage} />
<PollCard/>
</ThemeProvider>
);
};
ReactDOM.render(<App />, document.getElementById('root'));
|