fix: cross domain SVG sprites (#16244)

This commit is contained in:
Omar López authored and GitHub committed 2024-08-16 16:33:10 +00:00
1 parent aab9193e7b
commit 101fea2c1c
10 files changed
+53 -3

No files matched your search

+2
View File
@@ -5,6 +5,7 @@ import { headers, cookies } from "next/headers";
import React from "react";
import { getLocale } from "@calcom/features/auth/lib/getLocale";
import { IconSprites } from "@calcom/ui";
import { prepareRootMetadata } from "@lib/metadata";
@@ -83,6 +84,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
--font-cal: ${calFont.style.fontFamily.replace(/\'/g, "")};
}
`}</style>
<IconSprites />
</head>
<body
className="dark:bg-darkgray-50 bg-subtle antialiased"
+2
View File
@@ -8,6 +8,7 @@ import "@calcom/embed-core/src/embed-iframe";
import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequired";
import { IS_CALCOM, WEBAPP_URL } from "@calcom/lib/constants";
import { buildCanonical } from "@calcom/lib/next-seo.config";
import { IconSprites } from "@calcom/ui";
import type { AppProps } from "@lib/app-providers";
import AppProviders from "@lib/app-providers";
@@ -85,6 +86,7 @@ function PageWrapper(props: AppProps) {
--font-cal: ${calFont.style.fontFamily};
}
`}</style>
<IconSprites />
{getLayout(
Component.requiresLicense ? (
+5 -1
View File
@@ -10,6 +10,7 @@ import type { AppProps as NextAppProps } from "next/app";
import type { ReadonlyURLSearchParams } from "next/navigation";
import { useSearchParams } from "next/navigation";
import { useEffect, type ReactNode } from "react";
import CacheProvider from "react-inlinesvg/provider";
import { OrgBrandingProvider } from "@calcom/features/ee/organizations/context/provider";
import DynamicHelpscoutProvider from "@calcom/features/ee/support/lib/helpscout/providerDynamic";
@@ -273,7 +274,10 @@ const AppProviders = (props: PageWrapperProps) => {
isBookingPage={props.isBookingPage || isBookingPage}>
<FeatureFlagsProvider>
<OrgBrandProvider>
<MetaProvider>{props.children}</MetaProvider>
{/* @ts-expect-error FIXME remove this comment when upgrading typescript to v5 */}
<CacheProvider>
<MetaProvider>{props.children}</MetaProvider>
</CacheProvider>
</OrgBrandProvider>
</FeatureFlagsProvider>
</CalcomThemeProvider>
+5 -1
View File
@@ -10,6 +10,7 @@ import type { AppProps as NextAppProps, AppProps as NextJsAppProps } from "next/
import type { ParsedUrlQuery } from "querystring";
import type { PropsWithChildren, ReactNode } from "react";
import { useEffect } from "react";
import CacheProvider from "react-inlinesvg/provider";
import { OrgBrandingProvider } from "@calcom/features/ee/organizations/context/provider";
import DynamicHelpscoutProvider from "@calcom/features/ee/support/lib/helpscout/providerDynamic";
@@ -299,7 +300,10 @@ const AppProviders = (props: AppPropsWithChildren) => {
router={props.router}>
<FeatureFlagsProvider>
<OrgBrandProvider>
<MetaProvider>{props.children}</MetaProvider>
{/* @ts-expect-error FIXME remove this comment when upgrading typescript to v5 */}
<CacheProvider>
<MetaProvider>{props.children}</MetaProvider>
</CacheProvider>
</OrgBrandProvider>
</FeatureFlagsProvider>
</CalcomThemeProvider>