diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-07 22:19:02 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-07 22:19:02 -0700 |
commit | 49bf16e7d451388d894f93a994f3bf18571f9594 (patch) | |
tree | 1802bf775a0dd97503670c38ceb13d9aa78d95b6 /ui/src/index.tsx | |
parent | a61516439406b7884e19d9ae8a1875c728bbe628 (diff) |
Adding user details / overview page.
- Fixes #19
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r-- | ui/src/index.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/src/index.tsx b/ui/src/index.tsx index d374ec1e..45bae0f7 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -9,6 +9,7 @@ import { CreateCommunity } from './components/create-community'; import { Post } from './components/post'; import { Community } from './components/community'; import { Communities } from './components/communities'; +import { User } from './components/user'; import './main.css'; @@ -18,7 +19,7 @@ const container = document.getElementById('app'); class Index extends Component<any, any> { - constructor(props, context) { + constructor(props: any, context: any) { super(props, context); WebSocketService.Instance; UserService.Instance; @@ -35,8 +36,11 @@ class Index extends Component<any, any> { <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={`/community/:id`} component={Community} /> + <Route path={`/user/:id/:heading`} component={User} /> + <Route path={`/user/:id`} component={User} /> </Switch> {this.symbols()} </div> |