summaryrefslogtreecommitdiffstats
path: root/ui/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r--ui/src/index.tsx27
1 files changed, 20 insertions, 7 deletions
diff --git a/ui/src/index.tsx b/ui/src/index.tsx
index e9deba10..f3c7ff38 100644
--- a/ui/src/index.tsx
+++ b/ui/src/index.tsx
@@ -24,7 +24,6 @@ import { WebSocketService, UserService } from './services';
const container = document.getElementById('app');
class Index extends Component<any, any> {
-
constructor(props: any, context: any) {
super(props, context);
WebSocketService.Instance;
@@ -38,7 +37,10 @@ class Index extends Component<any, any> {
<Navbar />
<div class="mt-4 p-0">
<Switch>
- <Route path={`/home/type/:type/sort/:sort/page/:page`} 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} />
@@ -47,17 +49,29 @@ class Index extends Component<any, any> {
<Route path={`/communities`} component={Communities} />
<Route path={`/post/:id/comment/:comment_id`} component={Post} />
<Route path={`/post/:id`} component={Post} />
- <Route path={`/c/:name/sort/:sort/page/:page`} component={Community} />
+ <Route
+ path={`/c/:name/sort/:sort/page/:page`}
+ component={Community}
+ />
<Route path={`/community/:id`} component={Community} />
<Route path={`/c/:name`} component={Community} />
- <Route path={`/u/:username/view/:view/sort/:sort/page/:page`} component={User} />
+ <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} />
- <Route path={`/modlog/community/:community_id`} component={Modlog} />
+ <Route
+ path={`/modlog/community/:community_id`}
+ component={Modlog}
+ />
<Route path={`/modlog`} component={Modlog} />
<Route path={`/setup`} component={Setup} />
- <Route path={`/search/q/:q/type/:type/sort/:sort/page/:page`} component={Search} />
+ <Route
+ path={`/search/q/:q/type/:type/sort/:sort/page/:page`}
+ component={Search}
+ />
<Route path={`/search`} component={Search} />
<Route path={`/sponsors`} component={Sponsors} />
</Switch>
@@ -68,7 +82,6 @@ class Index extends Component<any, any> {
</Provider>
);
}
-
}
render(<Index />, container);