From e062b81e26b6ab687f294361f9cf862496e18a8c Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Thu, 15 Jun 2023 23:20:34 +0200 Subject: [PATCH] refactor: move analytics --- app/layout.tsx | 4 ++-- components/analytics.tsx | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 components/analytics.tsx diff --git a/app/layout.tsx b/app/layout.tsx index 7ac3090..5819a7f 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,7 +4,7 @@ import localFont from "next/font/local"; import "@/styles/globals.css"; import { siteConfig } from "@/config/site"; import { cn } from "@/lib/utils"; -import { Analytics } from "@/components/analytics"; +import { Analytics } from "@vercel/analytics/react"; import { TailwindIndicator } from "@/components/tailwind-indicator"; import { ThemeProvider } from "@/components/theme-provider"; @@ -89,9 +89,9 @@ export default function RootLayout({ children }: RootLayoutProps) { > {children} - + ); diff --git a/components/analytics.tsx b/components/analytics.tsx deleted file mode 100644 index 52e59d2..0000000 --- a/components/analytics.tsx +++ /dev/null @@ -1,7 +0,0 @@ -"use client"; - -import { Analytics as VercelAnalytics } from "@vercel/analytics/react"; - -export function Analytics() { - return ; -}