Skip to content

Commit

Permalink
remove tooltip from wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
ordinalspractice committed Jan 20, 2025
1 parent a7ee288 commit f41e23e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 31 deletions.
Binary file modified www/src/bip322_bg.wasm
Binary file not shown.
53 changes: 22 additions & 31 deletions www/src/components/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,30 @@ const ConnectWalletForm = ({ onBack }: ConnectWalletFormProps) => {
const isMissingWallet = !walletState.hasWallet[wallet.name];
return (
<div key={wallet.name} className="w-full">
<TooltipWrapper
showTooltip
tooltipLabel={
isMissingWallet
? `install ${wallet.name}`
: `connect ${wallet.name}`
}
>
{isMissingWallet ? (
<BaseButton
variant="icon"
asChild
className="bg-transparent/5 backdrop-blur-sm"
>
<a
href={wallet.url}
target="_blank"
rel="noopener noreferrer"
className="flex items-center justify-center"
>
<WalletIcon walletName={wallet.name} size={32} />
</a>
</BaseButton>
) : (
<BaseButton
variant="icon"
className="wallet-button-available"
onClick={() => walletActions.handleConnect(wallet.name)}
{isMissingWallet ? (
<BaseButton
variant="icon"
asChild
className="bg-transparent/5 backdrop-blur-sm"
>
<a
href={wallet.url}
target="_blank"
rel="noopener noreferrer"
className="flex items-center justify-center"
>
<WalletIcon walletName={wallet.name} size={32} />
</BaseButton>
)}
</TooltipWrapper>
</a>
</BaseButton>
) : (
<BaseButton
variant="icon"
className="wallet-button-available"
onClick={() => walletActions.handleConnect(wallet.name)}
>
<WalletIcon walletName={wallet.name} size={32} />
</BaseButton>
)}
</div>
);
})}
Expand Down

0 comments on commit f41e23e

Please sign in to comment.