Files
OpenClaw-bot-review/app/providers.tsx
T
xmanrui 7915a913c9 feat: add dark/light theme toggle
- 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
2026-02-23 07:09:45 +08:00

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>
);
}