Skip to content

Commit 51adae7

Browse files
committed
fix: analytics
1 parent 4490f5a commit 51adae7

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/components/layout/Root/Root.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { PropsWithChildren } from 'react';
2-
3-
// import { ClientOnly } from '~/components/common/ClientOnly';
2+
import { Analytics } from '@vercel/analytics/react';
43

54
import Content from '../Content';
65
import Footer from '../Footer';
@@ -12,9 +11,7 @@ const Root = ({ children }: PropsWithChildren) => {
1211
<Header />
1312
<Content>{children}</Content>
1413
<Footer />
15-
{/* <ClientOnly>
16-
<FABContainer />
17-
</ClientOnly> */}
14+
<Analytics />,
1815
</>
1916
);
2017
};

src/components/providers/root/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { PropsWithChildren } from 'react';
44
import { ThemeProvider } from 'next-themes';
55
import { LazyMotion } from 'framer-motion';
6-
import { Analytics } from '@vercel/analytics/react';
76

87
import ProviderComposer from '@/components/modules/shared/ProviderComposer';
98

@@ -12,7 +11,6 @@ const loadFeatures = () => import('./framer-lazy-feature').then((res) => res.def
1211
const webAppContexts: JSX.Element[] = [
1312
<ThemeProvider children key="themeProvider" />,
1413
<LazyMotion features={loadFeatures} strict key="framer" />,
15-
<Analytics />,
1614
];
1715

1816
export default function WebAppProviders({ children }: PropsWithChildren) {

0 commit comments

Comments
 (0)