correctly pass style

This commit is contained in:
Joseph J Helfenbein
2025-01-25 07:35:31 -05:00
parent bb7ababb7d
commit 3fafaf1f42

View File

@@ -1,21 +1,21 @@
import { ClerkProvider } from '@clerk/nextjs' "use client";
import './globals.css'
import { HTMLAttributes } from 'react';
export default function RootLayout({ import { ClerkProvider } from '@clerk/nextjs';
children, import './globals.css';
style import { ReactNode } from 'react';
}: {
children: React.ReactNode; interface RootLayoutProps {
style?: HTMLAttributes<HTMLDivElement>['style']; children: ReactNode;
}) { }
export default function RootLayout({ children }: RootLayoutProps) {
return ( return (
<ClerkProvider> <ClerkProvider>
<html lang="en" style={style}> <html lang="en">
<body className="centered-content"> <body className="centered-content">
{children} {children}
</body> </body>
</html> </html>
</ClerkProvider> </ClerkProvider>
) );
} }