mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
01e345c3e1
Extensions like ColorZilla inject attributes (cz-shortcut-listen) into <body> before React hydrates, causing a benign hydration mismatch. suppressHydrationWarning on <body> is the standard fix; it only ignores attribute diffs on <body> itself, not its children. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono, Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const inter = Inter({subsets:['latin'],variable:'--font-sans'});
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "temetro — AI assistant for clinicians",
|
|
description:
|
|
"Retrieve patient information by simply asking. The open-source AI assistant for clinicians.",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
className={cn("dark", "h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)}
|
|
>
|
|
{/* suppressHydrationWarning: browser extensions (e.g. ColorZilla's
|
|
cz-shortcut-listen) mutate <body> before hydration. Only ignores
|
|
attribute diffs on <body> itself, not its children. */}
|
|
<body
|
|
className="h-dvh overflow-hidden flex flex-col"
|
|
suppressHydrationWarning
|
|
>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|