Skip to content

Commit

Permalink
wallet connect test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 4, 2024
1 parent a531f5e commit 4fd5247
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/connectors/WalletConnectModal.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import React from 'react';
import ConnectButton from '../buttons/ConnectButton';

import { useWeb3Modal } from '@web3modal/ethers/react';
// import { useWeb3Modal } from '@web3modal/ethers/react';
import WebApp from '@twa-dev/sdk';

type Props = {
title: string;
icon: string;
};

const WalletConnectModal: React.FC<Props> = ({ title, icon }) => {
const { open } = useWeb3Modal();
// const { open } = useWeb3Modal();

const openModal = () => {
open({ view: 'Connect' });
// open({ view: 'Connect' });
WebApp.openLink('https://example.walletconnect.org/');
};

return (
Expand Down

0 comments on commit 4fd5247

Please sign in to comment.