Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Replace Welcome page with All
Browse files Browse the repository at this point in the history
  • Loading branch information
voidxnull committed Sep 10, 2017
1 parent 9f194ce commit 753d9b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/index-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React from 'react';
export default class IndexPage extends React.Component {
static fetchData(router, store) {
if (!store.getState().getIn(['current_user', 'id'])) {
return { status: 307, redirectTo: '/welcome' };
return { status: 307, redirectTo: '/all' };
}

return { status: 307, redirectTo: '/feed' };
Expand Down
2 changes: 0 additions & 2 deletions src/routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ import GeotagSubscriptionsPage from './pages/geotag-subscriptions';

import ListPage from './pages/list';
import Induction from './pages/induction';
import Welcome from './pages/welcome';

export function getRoutes(authHandler, fetchHandler) {
const withoutAuth = fetchHandler;
Expand All @@ -87,7 +86,6 @@ export function getRoutes(authHandler, fetchHandler) {
<Route component={GeotagSubscriptionsPage} path="/feed/geo" onEnter={withAuth} />
<Route component={Induction} path="/induction" onEnter={withAuth} />
<Route component={SuggestionsPage} path="/suggestions" onEnter={withAuth} />
<Route component={Welcome} path="/welcome" onEnter={withoutAuth} />
<Route component={Auth} path="/auth" onEnter={withoutAuth} />
<Route component={PostPage} path="/post/:uuid" onEnter={withoutAuth} />
<Route component={PostEditPage} path="/post/edit/:uuid" onEnter={withAuth} />
Expand Down

0 comments on commit 753d9b1

Please sign in to comment.