feat: add theme initialization script to root layout
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import "@styles/globals.css";
|
import "@styles/globals.css";
|
||||||
import { ZenProvider } from '@zen/core/features/provider';
|
import { ZenProvider } from '@zen/core/features/provider';
|
||||||
|
import { THEME_INIT_SCRIPT } from '@zen/core/themes';
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "",
|
title: "",
|
||||||
@@ -9,6 +10,9 @@ export const metadata = {
|
|||||||
export default function RootLayout({ children }) {
|
export default function RootLayout({ children }) {
|
||||||
return (
|
return (
|
||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<script dangerouslySetInnerHTML={{ __html: THEME_INIT_SCRIPT }} />
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<ZenProvider>
|
<ZenProvider>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user