Skip to content

Commit

Permalink
fix: vercel analytics
Browse files Browse the repository at this point in the history
(cherry picked from commit 12488e8)
  • Loading branch information
rdmclin2 authored and arvinxx committed Apr 12, 2024
1 parent d9aec74 commit 5b4e736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { inject } from '@vercel/analytics';
import { Analytics } from '@vercel/analytics/react';
import { cookies } from 'next/headers';
import { PropsWithChildren } from 'react';

Expand All @@ -7,7 +7,6 @@ import Layout from '@/layout';

import StyleRegistry from './StyleRegistry';

inject();

const RootLayout = ({ children }: PropsWithChildren) => {
// get default theme config to use with ssr
Expand All @@ -20,6 +19,7 @@ const RootLayout = ({ children }: PropsWithChildren) => {
<StyleRegistry>
<Layout defaultAppearance={appearance?.value}>{children}</Layout>
</StyleRegistry>
<Analytics/>
</body>
</html>
);
Expand Down

0 comments on commit 5b4e736

Please sign in to comment.