From 9a61b30c506fce6e931982ef44d60e0244168352 Mon Sep 17 00:00:00 2001 From: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:55:36 +0530 Subject: [PATCH] feat(wallet)_: keycard support for swap and approval (#21764) This commit adds support for Keycard in the swap flow Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> --- src/status_im/contexts/wallet/swap/set_spending_cap/view.cljs | 1 + src/status_im/contexts/wallet/swap/swap_confirmation/view.cljs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/status_im/contexts/wallet/swap/set_spending_cap/view.cljs b/src/status_im/contexts/wallet/swap/set_spending_cap/view.cljs index d5629630a9..33fe5e81aa 100644 --- a/src/status_im/contexts/wallet/swap/set_spending_cap/view.cljs +++ b/src/status_im/contexts/wallet/swap/set_spending_cap/view.cljs @@ -228,6 +228,7 @@ :container-style {:z-index 2} :customization-color (:color account) :disabled? (or loading-swap-proposal? (not swap-proposal)) + :keycard-supported? true :on-auth-success on-auth-success :auth-button-label (i18n/label :t/confirm)}])) diff --git a/src/status_im/contexts/wallet/swap/swap_confirmation/view.cljs b/src/status_im/contexts/wallet/swap/swap_confirmation/view.cljs index 81f9507e9b..80706a124a 100644 --- a/src/status_im/contexts/wallet/swap/swap_confirmation/view.cljs +++ b/src/status_im/contexts/wallet/swap/swap_confirmation/view.cljs @@ -178,6 +178,7 @@ (not swap-proposal) (not transaction-for-signing)) :auth-button-label (i18n/label :t/confirm) + :keycard-supported? true :on-auth-success (fn [data] (rf/dispatch [:wallet/stop-get-swap-proposal]) (rf/dispatch [:wallet/prepare-signatures-for-transactions :swap data]))}]))