fix first online resevation

This commit is contained in:
root
2026-05-09 20:01:51 -04:00
parent c4a45c8b21
commit 09b0e3b55f
75 changed files with 6394 additions and 2190 deletions
+10 -6
View File
@@ -1,6 +1,4 @@
import type { Metadata } from 'next'
import { ClerkProvider } from '@clerk/nextjs'
import { clerkFrontendEnabled } from '@/lib/clerk'
import { DashboardI18nProvider } from '@/components/I18nProvider'
import './globals.css'
@@ -10,13 +8,19 @@ export const metadata: Metadata = {
}
export default function RootLayout({ children }: { children: React.ReactNode }) {
const content = (
<html lang="en">
return (
<html lang="en" className="light" suppressHydrationWarning>
<head>
<script
dangerouslySetInnerHTML={{
__html:
"(function(){try{var theme=localStorage.getItem('dashboard-theme');if(theme!=='light'&&theme!=='dark'){theme=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'}document.documentElement.classList.remove('light','dark');document.documentElement.classList.add(theme);document.documentElement.style.colorScheme=theme}catch(e){}})();",
}}
/>
</head>
<body className="font-sans">
<DashboardI18nProvider>{children}</DashboardI18nProvider>
</body>
</html>
)
return clerkFrontendEnabled ? <ClerkProvider>{content}</ClerkProvider> : content
}