use 'next' label when sending transaction requires a sign
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
This commit is contained in:
parent
4a7c03b1cc
commit
d2478bbd34
|
@ -18,7 +18,8 @@
|
||||||
[status-im.ui.screens.wallet.send.sheets :as sheets]
|
[status-im.ui.screens.wallet.send.sheets :as sheets]
|
||||||
[status-im.ui.screens.wallet.components.views :as components]
|
[status-im.ui.screens.wallet.components.views :as components]
|
||||||
[status-im.utils.utils :as utils]
|
[status-im.utils.utils :as utils]
|
||||||
[status-im.ui.components.button :as button]))
|
[status-im.ui.components.button :as button]
|
||||||
|
[status-im.ethereum.core :as ethereum]))
|
||||||
|
|
||||||
(defn header [{:keys [label small-screen? on-cancel]}]
|
(defn header [{:keys [label small-screen? on-cancel]}]
|
||||||
[react/view (styles/header small-screen?)
|
[react/view (styles/header small-screen?)
|
||||||
|
@ -89,7 +90,8 @@
|
||||||
[:wallet.send/prepare-transaction-with-balance]
|
[:wallet.send/prepare-transaction-with-balance]
|
||||||
window-height [:dimensions/window-height]
|
window-height [:dimensions/window-height]
|
||||||
keyboard-height [:keyboard-height]]
|
keyboard-height [:keyboard-height]]
|
||||||
(let [small-screen? (< (- window-height keyboard-height) 450)]
|
(let [small-screen? (< (- window-height keyboard-height) 450)
|
||||||
|
to-norm (ethereum/normalized-hex (if (string? to) to (:address to)))]
|
||||||
[react/view {:style (styles/sheet small-screen?)}
|
[react/view {:style (styles/sheet small-screen?)}
|
||||||
[header {:small-screen? small-screen?
|
[header {:small-screen? small-screen?
|
||||||
:on-cancel #(re-frame/dispatch [:wallet/cancel-transaction-command])}]
|
:on-cancel #(re-frame/dispatch [:wallet/cancel-transaction-command])}]
|
||||||
|
@ -130,7 +132,7 @@
|
||||||
[render-contact to from-chat?]]]
|
[render-contact to from-chat?]]]
|
||||||
[toolbar/toolbar
|
[toolbar/toolbar
|
||||||
{:center
|
{:center
|
||||||
{:label :t/wallet-send
|
{:label (if (and (not request?) from-chat? (not to-norm)) :t/wallet-send :t/next)
|
||||||
:accessibility-label :send-transaction-bottom-sheet
|
:accessibility-label :send-transaction-bottom-sheet
|
||||||
:disabled? (not sign-enabled?)
|
:disabled? (not sign-enabled?)
|
||||||
:on-press #(re-frame/dispatch
|
:on-press #(re-frame/dispatch
|
||||||
|
|
Loading…
Reference in New Issue