Skip to content

Commit

Permalink
🐛 Prevent button inside button (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong authored and nwingt committed Aug 17, 2023
1 parent 1799a56 commit 4c3a482
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/connection-method-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const ConnectionMethodButton: FC<Props> = ({
};

const handleClickInstallLikerLandAppButton: MouseEventHandler = e => {
e.preventDefault();
e.stopPropagation();
if (onPress) onPress({ goToGetApp: true });
};
Expand Down Expand Up @@ -196,7 +197,11 @@ export const ConnectionMethodButton: FC<Props> = ({
)}
{type === LikeCoinWalletConnectorMethodType.LikerId && (
<div className="lk-flex lk-justify-center lk-mt-[12px]">
<Button onClick={handleClickInstallLikerLandAppButton}>
<Button
tag="a"
href="#"
onClick={handleClickInstallLikerLandAppButton}
>
<DownloadIcon />
<span>
<FormattedMessage id="connect_wallet_method_button_liker_land_app_install_prompt" />
Expand Down

0 comments on commit 4c3a482

Please sign in to comment.