correctly pass style
This commit is contained in:
@@ -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>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user