From babb1a3bf71d1822f72d87a650a0f64e766e1899 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Fri, 4 Oct 2024 15:39:20 -0400 Subject: [PATCH] fix annoying warning due to key spread (#16948) --- apps/web/lib/app-providers-app-dir.tsx | 4 ++-- apps/web/lib/app-providers.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/lib/app-providers-app-dir.tsx b/apps/web/lib/app-providers-app-dir.tsx index 463db38a70..abfe2aec22 100644 --- a/apps/web/lib/app-providers-app-dir.tsx +++ b/apps/web/lib/app-providers-app-dir.tsx @@ -141,10 +141,10 @@ const CalcomThemeProvider = (props: CalcomThemeProps) => { const embedNamespace = searchParams ? getEmbedNamespace(searchParams) : null; const isEmbedMode = typeof embedNamespace === "string"; - const themeProviderProps = getThemeProviderProps({ props, isEmbedMode, embedNamespace }); + const { key, ...themeProviderProps } = getThemeProviderProps({ props, isEmbedMode, embedNamespace }); return ( - + {/* Embed Mode can be detected reliably only on client side here as there can be static generated pages as well which can't determine if it's embed mode at backend */} {/* color-scheme makes background:transparent not work in iframe which is required by embed. */} {typeof window !== "undefined" && !isEmbedMode && ( diff --git a/apps/web/lib/app-providers.tsx b/apps/web/lib/app-providers.tsx index 34975b68f4..5d794d975c 100644 --- a/apps/web/lib/app-providers.tsx +++ b/apps/web/lib/app-providers.tsx @@ -145,10 +145,10 @@ const CalcomThemeProvider = (props: CalcomThemeProps) => { const embedNamespace = getEmbedNamespace(props.router.query); const isEmbedMode = typeof embedNamespace === "string"; - const themeProviderProps = getThemeProviderProps({ props, isEmbedMode, embedNamespace }); + const { key, ...themeProviderProps } = getThemeProviderProps({ props, isEmbedMode, embedNamespace }); return ( - + {/* Embed Mode can be detected reliably only on client side here as there can be static generated pages as well which can't determine if it's embed mode at backend */} {/* color-scheme makes background:transparent not work in iframe which is required by embed. */} {typeof window !== "undefined" && !isEmbedMode && (