|
|
@ -16,6 +16,7 @@ import {
|
|
|
|
useRouterHistory,
|
|
|
|
useRouterHistory,
|
|
|
|
Router,
|
|
|
|
Router,
|
|
|
|
Route,
|
|
|
|
Route,
|
|
|
|
|
|
|
|
IndexRedirect,
|
|
|
|
IndexRoute
|
|
|
|
IndexRoute
|
|
|
|
} from 'react-router';
|
|
|
|
} from 'react-router';
|
|
|
|
import { useScroll } from 'react-router-scroll';
|
|
|
|
import { useScroll } from 'react-router-scroll';
|
|
|
@ -107,8 +108,9 @@ const Mastodon = React.createClass({
|
|
|
|
<Provider store={store}>
|
|
|
|
<Provider store={store}>
|
|
|
|
<Router history={browserHistory} render={applyRouterMiddleware(useScroll())}>
|
|
|
|
<Router history={browserHistory} render={applyRouterMiddleware(useScroll())}>
|
|
|
|
<Route path='/' component={UI}>
|
|
|
|
<Route path='/' component={UI}>
|
|
|
|
<IndexRoute component={GettingStarted} />
|
|
|
|
<IndexRedirect to="/getting_started" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path='getting_started' component={GettingStarted} />
|
|
|
|
<Route path='timelines/home' component={HomeTimeline} />
|
|
|
|
<Route path='timelines/home' component={HomeTimeline} />
|
|
|
|
<Route path='timelines/mentions' component={MentionsTimeline} />
|
|
|
|
<Route path='timelines/mentions' component={MentionsTimeline} />
|
|
|
|
<Route path='timelines/public' component={PublicTimeline} />
|
|
|
|
<Route path='timelines/public' component={PublicTimeline} />
|
|
|
|