mirror of
https://github.com/xmanrui/OpenClaw-bot-review.git
synced 2026-07-27 22:25:52 +00:00
- Add light theme CSS variables in globals.css - Create ThemeProvider with localStorage persistence (lib/theme.tsx) - Add ThemeSwitcher button (☀️/🌙) to sidebar - Wrap app with ThemeProvider in providers.tsx
14 lines
311 B
TypeScript
14 lines
311 B
TypeScript
"use client";
|
|
|
|
import { I18nProvider } from "@/lib/i18n";
|
|
import { ThemeProvider } from "@/lib/theme";
|
|
import { ReactNode } from "react";
|
|
|
|
export function Providers({ children }: { children: ReactNode }) {
|
|
return (
|
|
<ThemeProvider>
|
|
<I18nProvider>{children}</I18nProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|