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>
This commit is contained in:
Mohamed Javid 2024-12-06 17:55:36 +05:30 committed by GitHub
parent f1652ee2c4
commit 9a61b30c50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -228,6 +228,7 @@
:container-style {:z-index 2} :container-style {:z-index 2}
:customization-color (:color account) :customization-color (:color account)
:disabled? (or loading-swap-proposal? (not swap-proposal)) :disabled? (or loading-swap-proposal? (not swap-proposal))
:keycard-supported? true
:on-auth-success on-auth-success :on-auth-success on-auth-success
:auth-button-label (i18n/label :t/confirm)}])) :auth-button-label (i18n/label :t/confirm)}]))

View File

@ -178,6 +178,7 @@
(not swap-proposal) (not swap-proposal)
(not transaction-for-signing)) (not transaction-for-signing))
:auth-button-label (i18n/label :t/confirm) :auth-button-label (i18n/label :t/confirm)
:keycard-supported? true
:on-auth-success (fn [data] :on-auth-success (fn [data]
(rf/dispatch [:wallet/stop-get-swap-proposal]) (rf/dispatch [:wallet/stop-get-swap-proposal])
(rf/dispatch [:wallet/prepare-signatures-for-transactions :swap data]))}])) (rf/dispatch [:wallet/prepare-signatures-for-transactions :swap data]))}]))