diff options
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r-- | ui/src/index.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/src/index.tsx b/ui/src/index.tsx index 36e5681d..1eb3a7d5 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -4,10 +4,12 @@ import { HashRouter, Route, Switch } from 'inferno-router'; import { Navbar } from './components/navbar'; import { Home } from './components/home'; import { Login } from './components/login'; +import { CreatePost } from './components/create-post'; +import { CreateCommunity } from './components/create-community'; import './main.css'; -import { WebSocketService } from './services'; +import { WebSocketService, UserService } from './services'; const container = document.getElementById('app'); @@ -16,6 +18,7 @@ class Index extends Component<any, any> { constructor(props, context) { super(props, context); WebSocketService.Instance; + UserService.Instance; } render() { @@ -26,6 +29,8 @@ class Index extends Component<any, any> { <Switch> <Route exact path="/" component={Home} /> <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} /> |