File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
apps/portal/src/app/[locale] Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
33import { I18nProviderClient } from "@/app/locales/client" ;
4- import { env } from "@/env.mjs" ;
54import { AnalyticsProvider } from "@comp/analytics" ;
65import { ThemeProvider } from "next-themes" ;
76import type { ReactNode } from "react" ;
@@ -12,9 +11,6 @@ type ProviderProps = {
1211} ;
1312
1413export function Providers ( { children, locale } : ProviderProps ) {
15- const hasAnalyticsKeys =
16- env . NEXT_PUBLIC_POSTHOG_KEY && env . NEXT_PUBLIC_POSTHOG_HOST ;
17-
1814 return (
1915 < I18nProviderClient locale = { locale } >
2016 < ThemeProvider
@@ -23,16 +19,7 @@ export function Providers({ children, locale }: ProviderProps) {
2319 enableSystem
2420 disableTransitionOnChange
2521 >
26- { hasAnalyticsKeys ? (
27- < AnalyticsProvider
28- apiKey = { env . NEXT_PUBLIC_POSTHOG_KEY ! }
29- apiHost = { env . NEXT_PUBLIC_POSTHOG_HOST ! }
30- >
31- { children }
32- </ AnalyticsProvider >
33- ) : (
34- children
35- ) }
22+ < AnalyticsProvider > { children } </ AnalyticsProvider >
3623 </ ThemeProvider >
3724 </ I18nProviderClient >
3825 ) ;
You can’t perform that action at this time.
0 commit comments