refactor: move analytics

This commit is contained in:
Bart van der Braak 2023-06-15 23:20:34 +02:00
parent 4e870b76c9
commit e062b81e26
2 changed files with 2 additions and 9 deletions

View file

@ -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) {
>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
{children}
<Analytics />
<TailwindIndicator />
</ThemeProvider>
<Analytics />
</body>
</html>
);

View file

@ -1,7 +0,0 @@
"use client";
import { Analytics as VercelAnalytics } from "@vercel/analytics/react";
export function Analytics() {
return <VercelAnalytics />;
}