Deleted the billing-redirect-button, checkout-redirect-button, and embedded-stripe-checkout components. Additionally, removed the shadcn directory, which encompassed billing-related icons. This change streamlines the subscription settings interface and organizes the system's payment management. This update is a stepping stone towards improving the billing system's overall architecture.
29 lines
764 B
TypeScript
29 lines
764 B
TypeScript
'use client';
|
|
|
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
|
|
import { I18nProvider } from '@kit/i18n/provider';
|
|
import { AuthChangeListener } from '@kit/supabase/components/auth-change-listener';
|
|
|
|
import pathsConfig from '~/config/paths.config';
|
|
import { i18nResolver } from '~/lib/i18n/i18n.resolver';
|
|
|
|
export function RootProviders({
|
|
lang,
|
|
children,
|
|
}: React.PropsWithChildren<{
|
|
lang: string;
|
|
}>) {
|
|
const queryClient = new QueryClient();
|
|
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
<AuthChangeListener appHomePath={pathsConfig.app.home}>
|
|
<I18nProvider lang={lang} resolver={i18nResolver}>
|
|
{children}
|
|
</I18nProvider>
|
|
</AuthChangeListener>
|
|
</QueryClientProvider>
|
|
);
|
|
}
|