Add theme selector with persisted context
This commit is contained in:
parent
8fc8361390
commit
16d42daf54
4 changed files with 115 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import "./globals.css";
|
||||
import type { ReactNode } from "react";
|
||||
import { ThemeProvider } from "./providers/theme";
|
||||
|
||||
export const metadata = {
|
||||
title: "Islandflow",
|
||||
|
|
@ -13,7 +14,9 @@ type RootLayoutProps = {
|
|||
export default function RootLayout({ children }: RootLayoutProps) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>{children}</body>
|
||||
<body>
|
||||
<ThemeProvider>{children}</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue