diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-28 17:41:24 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-28 17:41:24 -0700 |
commit | 0443538c792d8cdee3d23e065e51e7792d85e865 (patch) | |
tree | 693ba51cedf7ea8bedcff67510c9c933e122288a /ui/src/index.tsx | |
parent | 1769a62aacc624dc56d504b6e95277892f819f97 (diff) |
Adding paging to user details
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r-- | ui/src/index.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/src/index.tsx b/ui/src/index.tsx index 0164f50e..2f25dffe 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -38,17 +38,18 @@ class Index extends Component<any, any> { <Navbar /> <div class="mt-3 p-0"> <Switch> - <Route path="/home/type/:type/sort/:sort/page/:page" component={Main} /> - <Route exact path="/" component={Main} /> + <Route path={`/home/type/:type/sort/:sort/page/:page`} component={Main} /> + <Route exact path={`/`} component={Main} /> <Route path={`/login`} component={Login} /> <Route path={`/create_post`} component={CreatePost} /> <Route path={`/create_community`} component={CreateCommunity} /> <Route path={`/communities`} component={Communities} /> <Route path={`/post/:id/comment/:comment_id`} component={Post} /> <Route path={`/post/:id`} component={Post} /> - <Route path="/f/:name/sort/:sort/page/:page" component={Community} /> + <Route path={`/f/:name/sort/:sort/page/:page`} component={Community} /> <Route path={`/community/:id`} component={Community} /> <Route path={`/f/:name`} component={Community} /> + <Route path={`/u/:username/view/:view/sort/:sort/page/:page`} component={User} /> <Route path={`/user/:id`} component={User} /> <Route path={`/u/:username`} component={User} /> <Route path={`/inbox`} component={Inbox} /> |