Skip to content

Commit

Permalink
feat: add vercel Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 committed Oct 26, 2022
1 parent dee5953 commit 5de41f4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/mathjax-render-react-example/package.json
Expand Up @@ -10,6 +10,7 @@
"dependencies": {
"@nextui-org/react": "1.0.0-beta.10",
"@tailwindcss/typography": "^0.5.7",
"@vercel/analytics": "^0.1.1",
"classnames": "^2.3.2",
"mathjax-render": "workspace:0.0.17",
"mathjax-render-react": "workspace:0.0.17",
Expand Down
@@ -1,4 +1,4 @@
import Image from "next/image";
import Image from "next/legacy/image";
import { useTheme } from "next-themes";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
4 changes: 3 additions & 1 deletion examples/mathjax-render-react-example/src/pages/_app.tsx
@@ -1,6 +1,7 @@
import type { AppProps } from "next/app";
import { createTheme, NextUIProvider } from "@nextui-org/react";
import { ThemeProvider } from "next-themes";
import { createTheme, NextUIProvider } from "@nextui-org/react";
import { Analytics } from "@vercel/analytics/react";

import NProgress from "@/components/nprogress";

Expand Down Expand Up @@ -35,6 +36,7 @@ function MyApp({ Component, pageProps }: AppProps) {
<NextUIProvider>
<NProgress />
<Component {...pageProps} />
<Analytics />
</NextUIProvider>
</ThemeProvider>
);
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 5de41f4

Please sign in to comment.