aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web/src/components/App.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js
index df65bc20..70d154af 100644
--- a/src/web/src/components/App.js
+++ b/src/web/src/components/App.js
@@ -334,8 +334,12 @@ class App extends Component {
</div>)}
/>
<Route path={`${urlBase}/browse`} render={(props) => this.withTokenCheck(<Browse {...props}/>)}/>
- <Route path={`${urlBase}/users`} render={(props) => this.withTokenCheck(<Users {...props}/>)}/>
- <Route path={`${urlBase}/chat`} render={(props) => this.withTokenCheck(<Chat {...props}/>)}/>
+ <Route path={`${urlBase}/users`} render={(props) =>
+ this.withTokenCheck(<Users {...props}/>)}
+ />
+ <Route path={`${urlBase}/chat`} render={(props) =>
+ this.withTokenCheck(<Chat {...props} state={applicationState}/>)}
+ />
<Route path={`${urlBase}/rooms`} render={(props) => this.withTokenCheck(<Rooms {...props}/>)}/>
<Route path={`${urlBase}/uploads`} render={
(props) =>