d7fb7b7a7b
Build & Deploy / Build & Push Docker Image (push) Failing after 47s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / API Unit Tests (push) Failing after 5m4s
Test / Marketplace Unit Tests (push) Failing after 4m55s
Test / Admin Unit Tests (push) Successful in 9m37s
Test / Dashboard Unit Tests (push) Successful in 9m37s
Test / API Integration Tests (push) Successful in 9m54s
25 lines
1.2 KiB
TypeScript
25 lines
1.2 KiB
TypeScript
import type { Metadata } from 'next'
|
|
import { AdminI18nProvider } from '@/components/I18nProvider'
|
|
import './globals.css'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'RentalDriveGo Admin',
|
|
description: 'RentalDriveGo platform administration.',
|
|
}
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" className="light" suppressHydrationWarning>
|
|
<head>
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html:
|
|
"(function(){try{var m=document.cookie.match(/(?:^|; )rentaldrivego-theme=([^;]+)/);var theme=m?decodeURIComponent(m[1]):(localStorage.getItem('rentaldrivego-theme')||localStorage.getItem('admin-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;document.body&&document.body.setAttribute('data-theme',theme)}catch(e){}})();",
|
|
}}
|
|
/>
|
|
</head>
|
|
<body suppressHydrationWarning><AdminI18nProvider>{children}</AdminI18nProvider></body>
|
|
</html>
|
|
)
|
|
}
|