aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-21 14:59:56 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitbc2e876c592d5b3c117108baf5a5a58905510eae (patch)
tree29cf37494d6bd3f79cd7819ca58f97875142b923 /vnext/src/index.js
parent586d67c8e43970cc8c6e936f9eda48df5128efa8 (diff)
Add PM components
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 88e44465..7ba41fc1 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -4,6 +4,8 @@ import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom';
import Icon from './components/Icon';
import { Discover, Discussions, Blog, Tag, Home } from './components/Feeds';
import Settings from './components/Settings';
+import Contacts from './components/Contacts';
+import Chat from './components/Chat';
import Post from './components/Post';
import Thread from './components/Thread';
import LoginButton from './components/LoginButton';
@@ -135,6 +137,8 @@ class App extends React.Component {
<Settings visitor={user} {...props} />
} />
<Route exact path="/post" render={(props) => <Post visitor={user} {...props} />} />
+ <Route exact path="/pm" render={(props) => <Contacts visitor={user} {...props} />} />
+ <Route exact path="/pm/:user" render={(props) => <Chat visitor={user} {...props} />} />
<Route exact path="/:user" render={(props) => <Blog visitor={user} {...props} />} />
<Route exact path="/tag/:tag" render={(props) => <Tag visitor={user} {...props} />} />
<Route exact path="/:user/:mid" render={(props) => <Thread visitor={user} {...props} />} />
@@ -151,7 +155,7 @@ class App extends React.Component {
</Link>
</li>
<li>
- <Link to="/pm/inbox">
+ <Link to="/pm">
<Icon name="ei-envelope" size="s" />PM
</Link>
</li>