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