diff options
author | Dessalines <tyhou13@gmx.com> | 2019-03-22 18:42:57 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-03-22 18:42:57 -0700 |
commit | e570c70701e1c66dad12bef76821f6d94c717a02 (patch) | |
tree | 070d5ba322226acd5fe0d0a7757cb936462ab2ff /ui/src/index.tsx | |
parent | 816aa0b15f3766e340d8722f03e8b3a7633ab6fb (diff) |
Adding login and Register
- Login and Register mostly working.
- Starting to work on creating communities.
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} /> |