summaryrefslogtreecommitdiffstats
path: root/ui/src/index.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-28 17:41:24 -0700
committerDessalines <tyhou13@gmx.com>2019-04-28 17:41:24 -0700
commit0443538c792d8cdee3d23e065e51e7792d85e865 (patch)
tree693ba51cedf7ea8bedcff67510c9c933e122288a /ui/src/index.tsx
parent1769a62aacc624dc56d504b6e95277892f819f97 (diff)
Adding paging to user details
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r--ui/src/index.tsx7
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} />