From 7dd33d2854fd070031935b9fa47768dbf7877389 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Sun, 18 Jan 2026 12:44:55 +0100 Subject: [PATCH] Reverted all changes back to version 2136a2dd79d09c14a0683af7658fb195c57269ae --- src/app/[locale]/layout.tsx | 6 ++---- src/app/layout.tsx | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 src/app/layout.tsx diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 5d33ff3..710fbc6 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -1,6 +1,6 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; -import "../globals.css"; +import "./globals.css"; import { ThemeProvider } from "@/components/theme-provider"; import { Toaster } from "@/components/ui/sonner"; @@ -21,13 +21,11 @@ export const metadata: Metadata = { export default function RootLayout({ children, - params: { locale } }: Readonly<{ children: React.ReactNode; - params: { locale: string }; }>) { return ( - + diff --git a/src/app/layout.tsx b/src/app/layout.tsx new file mode 100644 index 0000000..5c7b711 --- /dev/null +++ b/src/app/layout.tsx @@ -0,0 +1,17 @@ +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 ( + + {children} + + ); +} \ No newline at end of file