Skip to content

Commit

Permalink
Add Analytics component to layout.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bagus0315 committed Feb 24, 2024
1 parent c107459 commit 37ac9a2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "./globals.css";
import { inter } from "@/components/ui/fonts";
import { Analytics } from "@vercel/analytics/react";

export const metadata = {
title: {
Expand All @@ -23,6 +24,7 @@ export default function RootLayout({ children }) {
</head>
<body className={`${inter.className} antialiased overflow-x-hidden`}>
<main className="gap-2 mx-auto">{children}</main>
<Analytics />
</body>
</html>
);
Expand Down
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@vercel/analytics": "^1.2.2",
"axios": "^1.6.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
Expand Down

0 comments on commit 37ac9a2

Please sign in to comment.