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:
parent
f1652ee2c4
commit
9a61b30c50
|
@ -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)}]))
|
||||||
|
|
||||||
|
|
|
@ -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]))}]))
|
||||||
|
|
Loading…
Reference in New Issue