style: enforce prop immutability in new next app (#58845)
- fixes #58844 Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
parent
ff058d64a5
commit
f60c609bdb
2 changed files with 4 additions and 4 deletions
|
@ -11,9 +11,9 @@ export const metadata: Metadata = {
|
|||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={inter.className}>{children}</body>
|
||||
|
|
|
@ -11,9 +11,9 @@ export const metadata: Metadata = {
|
|||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={inter.className}>{children}</body>
|
||||
|
|
Loading…
Reference in a new issue