From aef13c13a9ee33258c81301424f2ce629648deb9 Mon Sep 17 00:00:00 2001 From: William Chong Date: Mon, 26 Jun 2023 21:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20wc=20uri=20in=20likerland=20g?= =?UTF-8?q?etapp=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/connection-method-button.tsx | 6 ++--- .../connection-method-list-base.tsx | 8 +++---- .../connection-method-selection-dialog.tsx | 2 +- src/index.tsx | 23 ++++++++++++------- 4 files changed, 22 insertions(+), 17 deletions(-) diff --git a/src/components/connection-method-button.tsx b/src/components/connection-method-button.tsx index 8764e99..5c7cfb8 100644 --- a/src/components/connection-method-button.tsx +++ b/src/components/connection-method-button.tsx @@ -26,7 +26,7 @@ export interface Props { url?: string; isMobile?: boolean; keplrInstallCTAPreset?: KeplrInstallCTAPreset; - onPress?: () => void; + onPress?: (params?: any) => void; } /** @@ -83,6 +83,7 @@ export const ConnectionMethodButton: FC = ({ const handleClickInstallLikerLandAppButton: MouseEventHandler = e => { e.stopPropagation(); + if (onPress) onPress({ goToGetApp: true }); }; const handleClickOpenInDAppBrowserButton: MouseEventHandler = e => { @@ -197,9 +198,6 @@ export const ConnectionMethodButton: FC = ({ {type === LikeCoinWalletConnectorMethodType.LikerId && (