Skip to content

Commit

Permalink
feat: include posthog provider on Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
joseglego committed Mar 26, 2024
1 parent 50a0b77 commit 9b46f32
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { Metadata } from "next";
import { Barlow, Inconsolata, Koulen } from "next/font/google";
import { clsx } from "clsx";

import { CSPostHogProvider } from "./providers";

import "./globals.css";

const koulen = Koulen({
Expand Down Expand Up @@ -37,16 +39,18 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={clsx(
koulen.variable,
barlow.variable,
inconsolata.variable,
"relative z-50 bg-[#090907] after:pointer-events-none after:absolute after:inset-0 after:size-full after:select-none after:bg-noise after:bg-repeat after:content-['']",
)}
>
{children}
</body>
<CSPostHogProvider>
<body
className={clsx(
koulen.variable,
barlow.variable,
inconsolata.variable,
"relative z-50 bg-[#090907] after:pointer-events-none after:absolute after:inset-0 after:size-full after:select-none after:bg-noise after:bg-repeat after:content-['']",
)}
>
{children}
</body>
</CSPostHogProvider>
</html>
);
}

0 comments on commit 9b46f32

Please sign in to comment.