From 797a31202bbde1e5cba66ac18d8647f1f8cc21de Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Mon, 23 Sep 2024 18:53:34 +0200 Subject: [PATCH] feat: Rename FlagshipLink to WebFlagshipLink Related PR: cozy/cozy-client#1536 --- src/components/AppWrapper.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/AppWrapper.jsx b/src/components/AppWrapper.jsx index 146765e9ff..cd61d4045a 100644 --- a/src/components/AppWrapper.jsx +++ b/src/components/AppWrapper.jsx @@ -6,7 +6,7 @@ import flag from 'cozy-flags' import CozyClient, { CozyProvider, RealTimeQueries, - FlagshipLink + WebFlagshipLink } from 'cozy-client' import CozyDevtools from 'cozy-client/dist/devtools' import { useWebviewIntent } from 'cozy-intent' @@ -42,7 +42,7 @@ export const setupAppContext = memoize(intent => { const root = document.querySelector('[role=application]') const data = root.dataset - const shouldUseFlagshipLink = isFlagshipApp() && isFlagshipOfflineSupported() + const shouldUseWebFlagshipLink = isFlagshipApp() && isFlagshipOfflineSupported() // New improvements must be done with CozyClient const cozyClient = new CozyClient({ @@ -55,8 +55,8 @@ export const setupAppContext = memoize(intent => { ) ? true : false, - links: shouldUseFlagshipLink - ? new FlagshipLink({ webviewIntent: intent }) + links: shouldUseWebFlagshipLink + ? new WebFlagshipLink({ webviewIntent: intent }) : null })