From 0443538c792d8cdee3d23e065e51e7792d85e865 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 28 Apr 2019 17:41:24 -0700
Subject: Adding paging to user details

---
 ui/src/index.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'ui/src/index.tsx')

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} />
-- 
cgit v1.2.3

