Prepare for deprecated radix-ui IdProvider (#2068)
Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Bailey Pumfleet <pumfleet@hey.com> Co-authored-by: Omar López <zomars@me.com>pull/2478/head
parent
75c2ccff96
commit
e1df207f5d
|
@ -1,10 +1,7 @@
|
||||||
import { IdProvider } from "@radix-ui/react-id";
|
|
||||||
import { SessionProvider } from "next-auth/react";
|
import { SessionProvider } from "next-auth/react";
|
||||||
import { appWithTranslation } from "next-i18next";
|
import { appWithTranslation } from "next-i18next";
|
||||||
import type { AppProps as NextAppProps } from "next/app";
|
import type { AppProps as NextAppProps } from "next/app";
|
||||||
import React, { ComponentProps, ReactNode } from "react";
|
import { ComponentProps, ReactNode } from "react";
|
||||||
import { LiveChatLoaderProvider } from "react-live-chat-loader";
|
|
||||||
import { HelpScout } from "react-live-chat-loader";
|
|
||||||
|
|
||||||
import DynamicHelpscoutProvider from "@ee/lib/helpscout/providerDynamic";
|
import DynamicHelpscoutProvider from "@ee/lib/helpscout/providerDynamic";
|
||||||
import DynamicIntercomProvider from "@ee/lib/intercom/providerDynamic";
|
import DynamicIntercomProvider from "@ee/lib/intercom/providerDynamic";
|
||||||
|
@ -54,7 +51,6 @@ const AppProviders = (props: AppPropsWithChildren) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TelemetryProvider value={createTelemetryClient()}>
|
<TelemetryProvider value={createTelemetryClient()}>
|
||||||
<IdProvider>
|
|
||||||
{isPublicPage ? (
|
{isPublicPage ? (
|
||||||
RemainingProviders
|
RemainingProviders
|
||||||
) : (
|
) : (
|
||||||
|
@ -62,7 +58,6 @@ const AppProviders = (props: AppPropsWithChildren) => {
|
||||||
<DynamicIntercomProvider>{RemainingProviders}</DynamicIntercomProvider>
|
<DynamicIntercomProvider>{RemainingProviders}</DynamicIntercomProvider>
|
||||||
</DynamicHelpscoutProvider>
|
</DynamicHelpscoutProvider>
|
||||||
)}
|
)}
|
||||||
</IdProvider>
|
|
||||||
</TelemetryProvider>
|
</TelemetryProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue