Skip to content

Commit

Permalink
fix: Move ConnectorStateProvider under CozyProvider
Browse files Browse the repository at this point in the history
When handling connectors logs from ConnectorStateProvider, we will need
to use cozy-client

So we want ConnectorStateProvider to be under CozyProvider
  • Loading branch information
Ldoppea committed Dec 27, 2022
1 parent 95c4065 commit b3cac7f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ const WrappedApp = () => {
if (client)
return (
<CozyProvider client={client}>
<Nav />
<ConnectorStateProvider>
<Nav />
</ConnectorStateProvider>
</CozyProvider>
)

Expand All @@ -205,15 +207,13 @@ const Wrapper = () => {
{hasCrypto && (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ConnectorStateProvider>
<HttpServerProvider>
<SplashScreenProvider>
<NetStatusBoundary>
<WrappedApp />
</NetStatusBoundary>
</SplashScreenProvider>
</HttpServerProvider>
</ConnectorStateProvider>
<HttpServerProvider>
<SplashScreenProvider>
<NetStatusBoundary>
<WrappedApp />
</NetStatusBoundary>
</SplashScreenProvider>
</HttpServerProvider>
</PersistGate>
</Provider>
)}
Expand Down

0 comments on commit b3cac7f

Please sign in to comment.