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:
parent
751b015c04
commit
44179984e5
@ -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';
|
||||
|
@ -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";
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user