From f1c5fe2f560e2f868a5b1cfde23789ce871cfd42 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 19 May 2022 07:53:20 -0500 Subject: wrap pages in context provider, pass server state to searches --- src/web/src/components/App.js | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'src/web') diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js index a5bf936a..5e5ed10f 100644 --- a/src/web/src/components/App.js +++ b/src/web/src/components/App.js @@ -19,6 +19,8 @@ import Chat from './Chat/Chat'; import System from './System/System'; import LoginForm from './LoginForm'; +import AppContext from './AppContext'; + import { Sidebar, Segment, @@ -246,17 +248,26 @@ class App extends Component { - - this.withTokenCheck(
)}/> - this.withTokenCheck()}/> - this.withTokenCheck()}/> - this.withTokenCheck()}/> - this.withTokenCheck()}/> - this.withTokenCheck()}/> - this.withTokenCheck()}/> - this.withTokenCheck()}/> - -
+ + + + this.withTokenCheck(
+ +
)} + /> + this.withTokenCheck()}/> + this.withTokenCheck()}/> + this.withTokenCheck()}/> + this.withTokenCheck()}/> + this.withTokenCheck()}/> + this.withTokenCheck()}/> + this.withTokenCheck()}/> + +
+