Initial git
This commit is contained in:
56
app/app.jsx
Normal file
56
app/app.jsx
Normal file
@@ -0,0 +1,56 @@
|
||||
// Import external components refrence
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import injectTapEventPlugin from 'react-tap-event-plugin'
|
||||
import { cyan500 } from 'material-ui/styles/colors'
|
||||
import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'
|
||||
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
|
||||
import getMuiTheme from 'material-ui/styles/getMuiTheme'
|
||||
|
||||
import { Provider } from 'react-redux'
|
||||
import store, { history } from 'configureStore'
|
||||
import { ConnectedRouter } from 'react-router-redux'
|
||||
|
||||
// - Import app components
|
||||
import Master from 'Master'
|
||||
|
||||
// - Impport actions
|
||||
import * as authorizeActions from 'authorizeActions'
|
||||
import * as globalActions from 'globalActions'
|
||||
import * as userActions from 'userActions'
|
||||
|
||||
// Set default data
|
||||
store.subscribe(() => {
|
||||
var state = store.getState();
|
||||
|
||||
});
|
||||
|
||||
// Needed for onTouchTap
|
||||
// http://stackoverflow.com/a/34015469/988941
|
||||
injectTapEventPlugin();
|
||||
|
||||
// This replaces the textColor value on the palette
|
||||
// and then update the keys for each component that depends on it.
|
||||
// More on Colors: http://www.material-ui.com/#/customization/colors
|
||||
const muiTheme = getMuiTheme({
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
// App css
|
||||
require('applicationStyles');
|
||||
const supportsHistory = 'pushState' in window.history
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
<ConnectedRouter history={history}>
|
||||
<MuiThemeProvider muiTheme={getMuiTheme(lightBaseTheme)}>
|
||||
<Master />
|
||||
</MuiThemeProvider>
|
||||
|
||||
</ConnectedRouter>
|
||||
</Provider>,
|
||||
document.getElementById('app')
|
||||
);
|
||||
Reference in New Issue
Block a user