From 750b42ed8d645094dfa754ca7d733baf38bf32e5 Mon Sep 17 00:00:00 2001 From: Antonin Cezard Date: Fri, 5 Jan 2024 14:07:12 +0100 Subject: [PATCH] fix: Add AlertProvider to BarRightWithProvider Without this, the app will crash because the cozy bar context can't find the alert provider context --- src/components/Bar.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Bar.jsx b/src/components/Bar.jsx index 657ec95553..b4b2a3e438 100644 --- a/src/components/Bar.jsx +++ b/src/components/Bar.jsx @@ -8,6 +8,7 @@ import { useClient } from 'cozy-client' import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n' import { useWebviewIntent } from 'cozy-intent' import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints' +import AlertProvider from 'cozy-ui/transpiled/react/providers/Alert' const wrap = (Component, className) => { const WrappedBarComponent = ({ children }) => { @@ -47,7 +48,9 @@ export const BarRightWithProvider = ({ store, children }) => { webviewService={webviewIntent} > - {children} + + {children} +