diff options
Diffstat (limited to 'Timeline/ClientApp/src/app/App.tsx')
-rw-r--r-- | Timeline/ClientApp/src/app/App.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Timeline/ClientApp/src/app/App.tsx b/Timeline/ClientApp/src/app/App.tsx index befa2a9c..83ea4ea5 100644 --- a/Timeline/ClientApp/src/app/App.tsx +++ b/Timeline/ClientApp/src/app/App.tsx @@ -40,7 +40,7 @@ const App: React.FC = () => { body = <LoadingPage />; } else { body = ( - <React.Suspense fallback={<LoadingPage />}> + <Router> <Switch> <Route exact path="/"> <Home /> @@ -69,15 +69,15 @@ const App: React.FC = () => { <NoMatch /> </Route> </Switch> - </React.Suspense> + </Router> ); } return ( - <> - <Router>{body}</Router> + <React.Suspense fallback={<LoadingPage />}> + {body} <AlertHost /> - </> + </React.Suspense> ); }; |