From c614a61ea67c54fa77ec4864f04d3e9407479b6b Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 29 Jan 2023 08:36:49 -0600 Subject: wrap each set of routes in a Switch --- src/web/src/components/App.js | 77 +++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 39 deletions(-) (limited to 'src') diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js index 70d154af..b52a3bdd 100644 --- a/src/web/src/components/App.js +++ b/src/web/src/components/App.js @@ -315,50 +315,49 @@ class App extends Component { - - {isAgent ? <> + {isAgent ? + 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(
- -
) - }/> - this.withTokenCheck( - - ) - }/> - - } -
+ +
+ }
-- cgit v1.2.3