argh simplify

This commit is contained in:
Jori Lallo
2016-03-10 23:18:36 -08:00
parent 5c2b1ef117
commit 1133720fd4
4 changed files with 22 additions and 24 deletions

36
dist/bundle.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.js.map vendored
View File

@@ -1 +1 @@
{"version":3,"file":"bundle.js","sources":["webpack:///bundle.js","webpack:///"],"mappings":"AAAA;ACq1GA;AAqhFA;AA+2GA;AAn+DA;AA2gFA;AAk5HA;;;;;;;;;;;;;;AA+uFA;AAq3OA;AAltLA;AA8+jBA;;;;;AA04FA;;;;;AAsDA;AA85DA;AAyvDA;AA0yGA;AAu1FA;AAghEA;AA8pEA;AA45GA;AA03HA;AAu8IA","sourceRoot":""}
{"version":3,"file":"bundle.js","sources":["webpack:///bundle.js","webpack:///"],"mappings":"AAAA;ACi2GA;AAmhFA;AAw2GA;AA99DA;AAugFA;AAy4HA;;;;;;;;;;;;;;AA+uFA;AAguOA;AA3iLA;AA8+jBA;;;;;AA43FA;;;;;AAsDA;AA85DA;AAyvDA;AA0yGA;AAu1FA;AAghEA;AA8pEA;AA45GA;AA03HA;AAu8IA","sourceRoot":""}

View File

@@ -10,6 +10,7 @@ import {
} from '../../Actions';
import Header from '../../Components/Header';
import Dashboard from '../Dashboard';
import Auth from '../../Utils/Auth';
@@ -51,7 +52,7 @@ class App extends Component {
unsavedChanges={this.props.unsavedChanges}
/>
<div className={ styles.content }>
{ this.props.children }
<Dashboard />
</div>
</div>
);

View File

@@ -43,10 +43,7 @@ function requireAuth(nextState, replace) {
render((
<Provider store={store}>
<Router history={History}>
<Route path="/" component={Dashboard}>
<Route path="login" component={Login} />
<Route path="dashboard" component={Dashboard} onEnter={requireAuth} />
</Route>
<Route path="/" component={App} />
</Router>
</Provider>
), document.getElementById('root'));