Skip to content

Commit

Permalink
feat: Add analytics (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioantonio authored Jul 30, 2024
1 parent 6aeb3db commit 100e4ce
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@mantine/hooks": "^7",
"@mantine/notifications": "^7",
"@tabler/icons-react": "^2.39.0",
"@vercel/analytics": "^1.3.1",
"@web3modal/wagmi": "^3.0.0-beta.4",
"chroma-js": "^2.4.2",
"encoding": "^0.1",
Expand Down
23 changes: 23 additions & 0 deletions frontend/pnpm-lock.yaml

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

7 changes: 6 additions & 1 deletion frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import GraphQLProvider from "../providers/graphqlProvider";
import StyleProvider from "../providers/styleProvider";
import WalletProvider from "../providers/walletProvider";
import { Shell } from "./shell";

import { Analytics } from "@vercel/analytics/react";
// import { SWRConfig } from "swr";

// const fetcher = async <JSON = any,>(
Expand All @@ -29,7 +31,10 @@ const Layout: FC<{ children: React.ReactNode }> = ({ children }) => {
<GraphQLProvider>
<StyleProvider>
<WalletProvider>
<Shell>{children}</Shell>
<Shell>
{children}
<Analytics />
</Shell>
</WalletProvider>
</StyleProvider>
</GraphQLProvider>
Expand Down

0 comments on commit 100e4ce

Please sign in to comment.