
Some checks failed
GBCI / build (push) Failing after 1m48s
- Updated the layout to integrate a new ThemeProvider component. - Removed the old ModeToggle component and integrated theme selection directly into the ThemeProvider. - Deleted unused SVG files (tauri.svg, vite.svg) and the old mode-toggle and theme-provider components. - Added a comprehensive ThemeProvider that supports multiple themes with corresponding CSS files. - Created new theme CSS files for various themes including RetroWave, CyberPunk, and more. - Updated tsconfig.json to include new component paths for better type checking. - Ensured the application loads the saved theme from localStorage on startup.
23 lines
No EOL
584 B
TypeScript
23 lines
No EOL
584 B
TypeScript
|
|
|
|
import { Nav } from './client-nav';
|
|
import './globals.css';
|
|
|
|
import './globals.css' // This path is correct if the file is in your src/app directory
|
|
import { ReactNode } from 'react'
|
|
import { ThemeProvider } from './theme-provider';
|
|
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="en">
|
|
<body className='flex flex-col min-h-screen'>
|
|
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
<Nav />
|
|
{children}
|
|
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
} |