aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-31 21:56:39 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-31 21:56:39 -0500
commit5602d6ae1046191ae350001408b7891a5c656ca2 (patch)
treef4874850bd5eac974fd76b0333a8ed01cc614aa6 /src/web
parent6e5f007bcf4ab5f69def191f0ed1b0b35fbdbf89 (diff)
downloadslskd-5602d6ae1046191ae350001408b7891a5c656ca2.tar.gz
add navigation for Users
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/App.js19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js
index 46bbcf72..526e1706 100644
--- a/src/web/src/components/App.js
+++ b/src/web/src/components/App.js
@@ -6,6 +6,7 @@ import * as session from '../lib/session';
import './App.css';
import Search from './Search/Search';
import Browse from './Browse/Browse';
+import Users from './Users/Users';
import Transfers from './Transfers/Transfers';
import Chat from './Chat/Chat';
import LoginForm from './LoginForm';
@@ -122,11 +123,6 @@ class App extends Component {
<Icon name='upload'/>Uploads
</Menu.Item>
</Link>
- <Link to='browse'>
- <Menu.Item>
- <Icon name='folder open'/>Browse
- </Menu.Item>
- </Link>
<Link to='rooms'>
<Menu.Item>
<Icon name='comments'/>Rooms
@@ -137,6 +133,16 @@ class App extends Component {
<Icon name='comment'/>Chat
</Menu.Item>
</Link>
+ <Link to='users'>
+ <Menu.Item>
+ <Icon name='folder open'/>Users
+ </Menu.Item>
+ </Link>
+ <Link to='browse'>
+ <Menu.Item>
+ <Icon name='folder open'/>Browse
+ </Menu.Item>
+ </Link>
{token !== tokenPassthroughValue && <Modal
trigger={
<Menu.Item position='right'>
@@ -152,9 +158,10 @@ class App extends Component {
</Sidebar>
<Sidebar.Pusher className='app-content'>
<Switch>
+ <Route path='*/browse' render={(props) => this.withTokenCheck(<Browse {...props}/>)}/>
+ <Route path='*/users' render={(props) => this.withTokenCheck(<Users {...props}/>)}/>
<Route path='*/chat' render={(props) => this.withTokenCheck(<Chat {...props}/>)}/>
<Route path='*/rooms' render={(props) => this.withTokenCheck(<Rooms {...props}/>)}/>
- <Route path='*/browse' render={(props) => this.withTokenCheck(<Browse {...props}/>)}/>
<Route path='*/uploads' render={(props) => this.withTokenCheck(<Transfers {...props} direction='upload'/>)}/>
<Route path='*/downloads' render={(props) => this.withTokenCheck(<Transfers {...props} direction='download'/>)}/>
<Route path='*/' render={(props) => this.withTokenCheck(<Search {...props}/>)}/>