diff --git a/frontend/src/AppRoot.tsx b/frontend/src/AppRoot.tsx index e885d6ef8..4f26f0832 100644 --- a/frontend/src/AppRoot.tsx +++ b/frontend/src/AppRoot.tsx @@ -1,4 +1,6 @@ +import { ApolloProvider } from '@apollo/client' import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' +import { apolloClient } from './apolloClient' import PrivateRoute from './components/PrivateRoute' import { UserProfileProvider } from './components/UserProfileContext' import { AuthProvider, useAuth } from './hooks/useAuth' @@ -28,67 +30,69 @@ const App = () => { const { isLoading, isAuthenticated } = useAuth() return ( - - - - {isDev && ( - - + + + + + {isDev && ( + + + + )} + {isLoading && ( + + + + )} + + {isAuthenticated ? : } - )} - {isLoading && ( - - + + - )} - - {isAuthenticated ? : } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) }