parent
a856a88775
commit
60b5f817bc
@ -0,0 +1,17 @@ |
||||
import { Web3Button, Web3Modal } from "@web3modal/react" |
||||
import { WagmiConfig } from "wagmi" |
||||
import { PROJECT_ID } from "../services/constant" |
||||
|
||||
export function WalletConnectUI ({ ethereumClient, wagmiClient }) { |
||||
|
||||
return ( |
||||
<div> |
||||
<div style={{ display: 'inline-block', marginTop: 25 }}> |
||||
<WagmiConfig client={wagmiClient}> |
||||
<Web3Button label='Connect to a wallet' /> |
||||
</WagmiConfig> |
||||
</div> |
||||
<Web3Modal projectId={PROJECT_ID} ethereumClient={ethereumClient} themeMode={'dark'} /> |
||||
</div> |
||||
) |
||||
} |
Loading…
Reference in new issue