Skip to content

Commit

Permalink
Fix dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslansalikhov committed Apr 20, 2018
1 parent 2f134a0 commit 7c57729
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Routes-dev.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Auth extends React.Component {

const routes = (
<Route path="/" component={App} onEnter={willTransitionTo}>
<IndexRoute component={DashboardPage} />
<IndexRoute component={DashboardContainer} />
<Route path="/auth/:data" component={Auth} />
<Route path="/dashboard" component={DashboardContainer} />
<Route path="explorer" component={Explorer} />
Expand Down
9 changes: 9 additions & 0 deletions app/Routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ const routes = (
/>
<Route path="/auth/:data" component={Auth} />

<Route
path="/dashboard"
getComponent={(location, cb) => {
System.import("components/Dashboard/DashboardContainer")
.then(loadRoute(cb))
.catch(errorLoading);
}}
/>

<Route
path="explorer"
getComponent={(location, cb) => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c57729

Please sign in to comment.