From 1ef50d18db083e358b29a7a3484f2e245408e3a2 Mon Sep 17 00:00:00 2001 From: "Leon Acosta @ Dandelion Labs" Date: Wed, 8 Nov 2023 16:28:41 +0700 Subject: [PATCH] added google analytics --- example/pages/_app.tsx | 28 +++++++++++++++++++++++++--- example/pages/index.tsx | 8 -------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/example/pages/_app.tsx b/example/pages/_app.tsx index 43baa7d..fb1b9bd 100644 --- a/example/pages/_app.tsx +++ b/example/pages/_app.tsx @@ -2,6 +2,7 @@ import { Web3ReactHooks, Web3ReactProvider } from "@web3-react/core"; import { MetaMask } from "@web3-react/metamask"; import { AppProps } from "next/app"; import React, { useEffect } from "react"; +import Script from 'next/script' import { hooks as metaMaskHooks, metaMask } from "../connectors/metaMask"; @@ -30,8 +31,29 @@ export default function App({ Component, pageProps }: AppProps) { }; }, []); return ( - - - + <> + + + MetaMask Encrypt/Decrypt + + + + + + + + + + + ); } diff --git a/example/pages/index.tsx b/example/pages/index.tsx index a13ccbb..54e08d2 100644 --- a/example/pages/index.tsx +++ b/example/pages/index.tsx @@ -33,14 +33,6 @@ export default function Home() { const [activeTab, setActiveTab] = useState(TabOptions.ENCRYPT); return ( <> - - MetaMask Encrypt/Decrypt - - - - - - {account ? (

Connected with account: {account}