Unverified Commit f60c609b authored by Hamir Mahal's avatar Hamir Mahal Committed by GitHub

style: enforce prop immutability in new next app (#58845)

- fixes #58844
Co-authored-by: 's avatarSteven <steven@ceriously.com>
parent ff058d64
...@@ -11,9 +11,9 @@ export const metadata: Metadata = { ...@@ -11,9 +11,9 @@ export const metadata: Metadata = {
export default function RootLayout({ export default function RootLayout({
children, children,
}: { }: Readonly<{
children: React.ReactNode children: React.ReactNode
}) { }>) {
return ( return (
<html lang="en"> <html lang="en">
<body className={inter.className}>{children}</body> <body className={inter.className}>{children}</body>
......
...@@ -11,9 +11,9 @@ export const metadata: Metadata = { ...@@ -11,9 +11,9 @@ export const metadata: Metadata = {
export default function RootLayout({ export default function RootLayout({
children, children,
}: { }: Readonly<{
children: React.ReactNode children: React.ReactNode
}) { }>) {
return ( return (
<html lang="en"> <html lang="en">
<body className={inter.className}>{children}</body> <body className={inter.className}>{children}</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment