Making AccountTimeline into a sub-route

This commit is contained in:
Eugen Rochko
2016-10-09 20:18:54 +02:00
parent 427ba27641
commit 29e79f770f
3 changed files with 89 additions and 45 deletions

View File

@ -20,6 +20,7 @@ import Status from '../features/status';
import GettingStarted from '../features/getting_started';
import PublicTimeline from '../features/public_timeline';
import UI from '../features/ui';
import AccountTimeline from '../features/account_timeline';
const store = configureStore();
@ -78,7 +79,9 @@ const Mastodon = React.createClass({
<IndexRoute component={GettingStarted} />
<Route path='/statuses/all' component={PublicTimeline} />
<Route path='/statuses/:statusId' component={Status} />
<Route path='/accounts/:accountId' component={Account} />
<Route path='/accounts/:accountId' component={Account}>
<IndexRoute component={AccountTimeline} />
</Route>
</Route>
</Router>
</Provider>