Reverted all changes back to version 2136a2dd79

This commit is contained in:
[dyad]
2026-01-18 12:44:55 +01:00
parent f86c3bc68d
commit 7dd33d2854
2 changed files with 19 additions and 4 deletions

View File

@@ -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 (
<html lang={locale} suppressHydrationWarning>
<html lang="en" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>

17
src/app/layout.tsx Normal file
View File

@@ -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 (
<html lang={locale}>
<body>{children}</body>
</html>
);
}