[dyad] Fixed 404 error by correcting i18n layout structure - wrote 1 file(s), deleted 1 file(s)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
type Props = {
|
||||
children: ReactNode;
|
||||
params: { locale: string };
|
||||
};
|
||||
|
||||
// Even though this component is just passing its children through, the presence
|
||||
// of this file fixes an issue in Next.js 13.4 where link clicks that switch
|
||||
// the locale would otherwise cause a full page reload.
|
||||
export default function RootLayout({ children, params: { locale } }: Props) {
|
||||
return (
|
||||
<html lang={locale}>
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user