Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"send" label changed to "next" in wallet #10160

Merged
merged 1 commit into from
Mar 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/status_im/ui/screens/wallet/send/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
[status-im.ui.screens.wallet.send.sheets :as sheets]
[status-im.ui.screens.wallet.components.views :as components]
[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]}]
[react/view (styles/header small-screen?)
Expand Down Expand Up @@ -89,7 +90,8 @@
[:wallet.send/prepare-transaction-with-balance]
window-height [:dimensions/window-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?)}
[header {:small-screen? small-screen?
:on-cancel #(re-frame/dispatch [:wallet/cancel-transaction-command])}]
Expand Down Expand Up @@ -130,7 +132,7 @@
[render-contact to from-chat?]]]
[toolbar/toolbar
{: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
:disabled? (not sign-enabled?)
:on-press #(re-frame/dispatch
Expand Down