diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 3e25de0c3..aa0ce6744 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -1,7 +1,8 @@ import { ThemeModeScript } from "flowbite-react"; import { Inter as InterFont } from "next/font/google"; -import type { Metadata, NextPage, Viewport } from "next/types"; -import type { FC, PropsWithChildren } from "react"; +import type { Metadata, Viewport } from "next/types"; +import type { PropsWithChildren } from "react"; +import { FathomScript } from "~/components/fathom-script"; import "~/styles/globals.css"; @@ -53,7 +54,7 @@ export const viewport: Viewport = { ], }; -const RootLayout: NextPage = ({ children }) => { +export default function RootLayout({ children }: PropsWithChildren) { return ( @@ -65,10 +66,4 @@ const RootLayout: NextPage = ({ children }) => { ); -}; - -const FathomScript: FC = () => { - return