fix: fix button color on input amount screen (#18572)

Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
Brian Sztamfater 2024-01-24 10:27:00 -03:00 committed by GitHub
parent 521f39b6fb
commit ebbae051bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View File

@ -128,7 +128,8 @@
(empty? @input-value) (empty? @input-value)
(<= input-num-value 0) (<= input-num-value 0)
(> input-num-value (:amount @current-limit))) (> input-num-value (:amount @current-limit)))
amount (str @input-value " " token-symbol)] amount (str @input-value " " token-symbol)
{:keys [color]} (rf/sub [:wallet/current-viewing-account])]
(rn/use-effect (rn/use-effect
(fn [] (fn []
(let [dismiss-keyboard-fn #(when (= % "active") (rn/dismiss-keyboard!)) (let [dismiss-keyboard-fn #(when (= % "active") (rn/dismiss-keyboard!))
@ -173,7 +174,8 @@
{:actions :1-action {:actions :1-action
:button-one-label (i18n/label :t/confirm) :button-one-label (i18n/label :t/confirm)
:button-one-props {:disabled? confirm-disabled? :button-one-props {:disabled? confirm-disabled?
:on-press on-confirm}}] :on-press on-confirm}
:customization-color color}]
[quo/numbered-keyboard [quo/numbered-keyboard
{:container-style (style/keyboard-container bottom) {:container-style (style/keyboard-container bottom)
:left-action :dot :left-action :dot

View File

@ -128,7 +128,8 @@
(fn [] (fn []
(let [selected-tab (or (rf/sub [:wallet/send-tab]) (:id (first tabs-data))) (let [selected-tab (or (rf/sub [:wallet/send-tab]) (:id (first tabs-data)))
token (rf/sub [:wallet/wallet-send-token]) token (rf/sub [:wallet/wallet-send-token])
valid-ens-or-address? (boolean (rf/sub [:wallet/valid-ens-or-address?]))] valid-ens-or-address? (boolean (rf/sub [:wallet/valid-ens-or-address?]))
{:keys [color]} (rf/sub [:wallet/current-viewing-account])]
(rn/use-effect (fn [] (rn/use-effect (fn []
(fn [] (fn []
(rf/dispatch [:wallet/clean-scanned-address]) (rf/dispatch [:wallet/clean-scanned-address])
@ -146,7 +147,8 @@
:on-press #(rf/dispatch [:wallet/select-send-address :on-press #(rf/dispatch [:wallet/select-send-address
{:address @input-value {:address @input-value
:token token :token token
:stack-id :wallet-select-address}])} :stack-id :wallet-select-address}])
:customization-color color}
(i18n/label :t/continue)])} (i18n/label :t/continue)])}
[quo/text-combinations [quo/text-combinations
{:title (i18n/label :t/send-to) {:title (i18n/label :t/send-to)