diff --git a/app/connect/page.tsx b/app/connect/page.tsx index fc13ef0..d311a49 100644 --- a/app/connect/page.tsx +++ b/app/connect/page.tsx @@ -7,9 +7,11 @@ import Image from "next/image"; import { useAccount, useConnect } from "wagmi"; import Link from "next/link"; +const connectorImages = ["coinbaseWallet.png", "walletConnect.png", "metaMask.png"]; + export default function Page() { const account = useAccount(); - const { connectors, connect, status, error } = useConnect(); + const { connectors, connect } = useConnect(); const router = useRouter(); useEffect(() => { @@ -28,11 +30,10 @@ export default function Page() {

Choose your preferred wallet

- {connectors.map((connector) => { - console.log(connector.id); + {connectors.map((connector, index) => { return (
connect({ connector })}> - {connector.name} {connector.id} + {connector.name} {connector.id}
); })} diff --git a/public/coinbasewalletSDK.png b/public/coinbasewallet.png similarity index 100% rename from public/coinbasewalletSDK.png rename to public/coinbasewallet.png diff --git a/public/metaMaskSDK.png b/public/metaMask.png similarity index 100% rename from public/metaMaskSDK.png rename to public/metaMask.png diff --git a/wagmi.ts b/wagmi.ts index 2359ed8..09c5dc2 100644 --- a/wagmi.ts +++ b/wagmi.ts @@ -5,7 +5,7 @@ import { coinbaseWallet, metaMask, walletConnect } from "wagmi/connectors"; export const config = createConfig({ chains: [gnosis, gnosisChiado], multiInjectedProviderDiscovery: false, - connectors: [coinbaseWallet({ appName: "Gnosis Deposit" }), walletConnect({ projectId: process.env.NEXT_PUBLIC_WC_PROJECT_ID || "" }), metaMask()], + connectors: [coinbaseWallet({ appName: "Gnosis Deposit" }), walletConnect({ projectId: process.env.NEXT_PUBLIC_WC_PROJECT_ID || "" }), metaMask({dappMetadata: {name: "Gnosis Deposit"}})], ssr: true, transports: { [gnosis.id]: http("https://rpc.gnosischain.com/"),