diff options
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r-- | ui/src/index.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/src/index.tsx b/ui/src/index.tsx index 1eb3a7d5..e68fc92a 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -6,6 +6,8 @@ import { Home } from './components/home'; import { Login } from './components/login'; import { CreatePost } from './components/create-post'; import { CreateCommunity } from './components/create-community'; +import { Post } from './components/post'; +import { Community } from './components/community'; import './main.css'; @@ -31,12 +33,8 @@ class Index extends Component<any, any> { <Route path={`/login`} component={Login} /> <Route path={`/create_post`} component={CreatePost} /> <Route path={`/create_community`} component={CreateCommunity} /> - {/* - <Route path={`/search/:type_/:q/:page`} component={Search} /> - <Route path={`/submit`} component={Submit} /> - <Route path={`/user/:id`} component={Login} /> - <Route path={`/community/:id`} component={Login} /> - */} + <Route path={`/post/:id`} component={Post} /> + <Route path={`/community/:id`} component={Community} /> </Switch> </div> </HashRouter> |