refactor: update theme and payment providers

- Renamed and reorganized the ActiveThemeProvider and PaymentProvider components for better clarity and structure.
- Introduced the ActiveThemeProvider component to manage the active theme and set cookies accordingly.
- Implemented the PaymentProvider component to initialize payment state based on the user's session.
- Updated imports in related components to reflect the new file structure.
This commit is contained in:
javayhu 2025-04-12 13:03:06 +08:00
parent 751b015c04
commit 44179984e5
4 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
'use client';
import { ActiveThemeProvider } from '@/components/layout/active-theme';
import { PaymentProvider } from '@/components/providers/payment-provider';
import { ActiveThemeProvider } from '@/components/layout/active-theme-provider';
import { PaymentProvider } from '@/components/layout/payment-provider';
import { TooltipProvider } from '@/components/ui/tooltip';
import { RootProvider } from 'fumadocs-ui/provider';
import { ThemeProvider, useTheme } from 'next-themes';

View File

@ -11,7 +11,7 @@ import {
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { useThemeConfig } from "./active-theme";
import { useThemeConfig } from "./active-theme-provider";
import { useTranslations } from "next-intl";
/**