Skip to content

Commit

Permalink
feat: ✨ add posthog provider to public routes layout
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Nov 22, 2024
1 parent a4c8c5f commit a5103f0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Mulish } from "next/font/google";
import "./globals.css";
import { ClerkProvider } from "@clerk/nextjs";
import { dark } from "@clerk/themes";
import { PostHogProvider } from "./_lib/providers";

const mulish = Mulish({
subsets: ["latin-ext"],
Expand All @@ -19,13 +20,15 @@ export default function RootLayout({
}) {
return (
<html lang="pt-BR">
<ClerkProvider appearance={{ baseTheme: dark }}>
<body
className={`${mulish.className} dark flex h-full flex-col overflow-hidden antialiased`}
>
{children}
</body>
</ClerkProvider>
<PostHogProvider>
<ClerkProvider appearance={{ baseTheme: dark }}>
<body
className={`${mulish.className} dark flex h-full flex-col overflow-hidden antialiased`}
>
{children}
</body>
</ClerkProvider>
</PostHogProvider>
</html>
);
}

0 comments on commit a5103f0

Please sign in to comment.