Skip to content

Commit

Permalink
fix: Do not import DataProxyProvider in public route
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Dec 17, 2024
1 parent 77a7d76 commit d5c8c14
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/components/App/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ const App = ({ isPublic, store, client, lang, polyglot, children }) => {
<BarProvider>
<Provider store={store}>
<DriveProvider client={client} lang={lang} polyglot={polyglot}>
<DataProxyProvider>
<PushBannerProvider>
<AcceptingSharingProvider>
<ThumbnailSizeContextProvider>
<ModalContextProvider>{children}</ModalContextProvider>
</ThumbnailSizeContextProvider>
</AcceptingSharingProvider>
</PushBannerProvider>
</DataProxyProvider>
<PushBannerProvider>
<AcceptingSharingProvider>
<ThumbnailSizeContextProvider>
<ModalContextProvider>
{isPublic ? (
children
) : (
<DataProxyProvider>{children}</DataProxyProvider>
)}
</ModalContextProvider>
</ThumbnailSizeContextProvider>
</AcceptingSharingProvider>
</PushBannerProvider>
</DriveProvider>
</Provider>
</BarProvider>
Expand Down

0 comments on commit d5c8c14

Please sign in to comment.