argh simplify
This commit is contained in:
36
dist/bundle.js
vendored
36
dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/bundle.js.map
vendored
2
dist/bundle.js.map
vendored
@@ -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":""}
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user