-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wallet connect): fix wallet connect UI
- Loading branch information
1 parent
172e2d2
commit 407cba8
Showing
2 changed files
with
100 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
import { useCallback, useState } from "react"; | ||
import WalletSelectionModal from "./walletSelectionModal"; | ||
|
||
export default function WalletButton() { | ||
const [visible, setVisible] = useState(false); | ||
|
||
const handleClose = useCallback(() => { | ||
setVisible(false); | ||
}, []); | ||
|
||
console.log(visible); | ||
|
||
return ( | ||
<> | ||
<div className="flex h-[36px] w-fit cursor-pointer items-center justify-center gap-[5px] rounded-[10px] bg-white px-[10px] hover:shadow-lg"> | ||
<div | ||
onClick={() => { | ||
setVisible(true); | ||
}} | ||
className="flex h-[36px] w-fit cursor-pointer items-center justify-center gap-[5px] rounded-[10px] bg-white px-[10px] hover:shadow-lg" | ||
> | ||
<span className="block h-[19px] w-[19px] bg-[url('/images/icons/wallet-icon.svg')] bg-contain bg-center bg-no-repeat" /> | ||
<p className="text-[14px] leading-[24px]">Connect Wallet</p> | ||
</div> | ||
{/* <WalletSelectionModal /> */} | ||
<WalletSelectionModal visible={visible} onClose={handleClose} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters