Skip to content

Commit

Permalink
feat: added analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahuletto committed Aug 12, 2024
1 parent f419032 commit 3c78b00
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Metadata } from "next";
import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";

import { Analytics } from "@vercel/analytics/react";
import { UserProvider } from "@/provider/UserProvider";

import "./globals.css";
Expand Down Expand Up @@ -115,13 +115,14 @@ export default async function RootLayout({

<meta name="theme-color" content={Themes.dark.background.normal} />

{key && key.value ? (
<GroupProviders>
<body className="h-screen">{children}</body>
</GroupProviders>
) : (
<body className="h-screen">{children}</body>
)}
<body className="h-screen">
<Analytics />
{key && key.value ? (
<GroupProviders>{children}</GroupProviders>
) : (
children
)}
</body>
</ThemeProvider>
</html>
</ViewTransitions>
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@vercel/analytics": "^1.3.1",
"date-fns": "^3.6.0",
"geist": "^1.3.1",
"lz-string": "^1.5.0",
Expand Down

0 comments on commit 3c78b00

Please sign in to comment.