-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
43 lines (37 loc) · 1.02 KB
/
app.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
// react
import React from 'react';
import ReactDOM from 'react-dom';
// material ui
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {blue500, grey50, grey600} from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import injectTapEventPlugin from 'react-tap-event-plugin';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
// my component
import TrackboxFAB from './components/TrackboxFAB';
import Console from './components/Console';
import TrackGoalContainer from './containers/TrackGoal';
import LoadingContainer from './containers/Loading';
const muiTheme = getMuiTheme({
tabs: {
backgroundColor: grey50,
textColor: grey600,
selectedTextColor: blue500
},
inkBar: {
backgroundColor: blue500
}
});
const App = () => (
<MuiThemeProvider muiTheme={muiTheme}>
<div>
<TrackboxFAB />
<Console mini={true}/>
<TrackGoalContainer />
<LoadingContainer />
</div>
</MuiThemeProvider>
);
export default App;