[FIX #3223] Fit Recipient screen to mocks on iOS
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
e3fe6d48da
commit
0da3ccd5ea
|
@ -27,10 +27,12 @@
|
||||||
(def default-action (actions/back-white actions/default-handler))
|
(def default-action (actions/back-white actions/default-handler))
|
||||||
|
|
||||||
(defn- toolbar
|
(defn- toolbar
|
||||||
([title] (toolbar default-action title))
|
([title] (toolbar {} title))
|
||||||
([action title] (toolbar action title nil))
|
([props title] (toolbar props default-action title))
|
||||||
([action title options]
|
([props action title] (toolbar props action title nil))
|
||||||
[toolbar/toolbar {:style styles/toolbar}
|
([props action title options]
|
||||||
|
[toolbar/toolbar (utils/deep-merge {:style styles/toolbar}
|
||||||
|
props)
|
||||||
[toolbar/nav-button action]
|
[toolbar/nav-button action]
|
||||||
[toolbar/content-title {:color :white}
|
[toolbar/content-title {:color :white}
|
||||||
title]
|
title]
|
||||||
|
|
|
@ -23,6 +23,13 @@
|
||||||
:height 52
|
:height 52
|
||||||
:letter-spacing -0.2}))
|
:letter-spacing -0.2}))
|
||||||
|
|
||||||
|
(def contact-code-text-input
|
||||||
|
{:text-align-vertical :top
|
||||||
|
:padding-top 16
|
||||||
|
:padding-left 2
|
||||||
|
:padding-right 8
|
||||||
|
:height 72})
|
||||||
|
|
||||||
(defstyle label
|
(defstyle label
|
||||||
{:color :white
|
{:color :white
|
||||||
:ios {:font-size 14
|
:ios {:font-size 14
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
[status-im.ui.screens.wallet.components.styles :as styles]
|
[status-im.ui.screens.wallet.components.styles :as styles]
|
||||||
[status-im.ui.screens.wallet.choose-recipient.views :as choose-recipient]
|
[status-im.ui.screens.wallet.choose-recipient.views :as choose-recipient]
|
||||||
[status-im.ui.screens.wallet.views :as wallet]
|
[status-im.ui.screens.wallet.views :as wallet]
|
||||||
|
[status-im.ui.screens.wallet.styles :as wallet.styles]
|
||||||
[status-im.ui.screens.wallet.utils :as wallet.utils]
|
[status-im.ui.screens.wallet.utils :as wallet.utils]
|
||||||
[status-im.utils.ethereum.core :as ethereum]
|
[status-im.utils.ethereum.core :as ethereum]
|
||||||
[status-im.utils.ethereum.tokens :as tokens]
|
[status-im.utils.ethereum.tokens :as tokens]
|
||||||
|
@ -140,11 +141,14 @@
|
||||||
(let [content (reagent/atom nil)]
|
(let [content (reagent/atom nil)]
|
||||||
(fn []
|
(fn []
|
||||||
[components/simple-screen {:avoid-keyboard? true}
|
[components/simple-screen {:avoid-keyboard? true}
|
||||||
[components/toolbar (i18n/label :t/recipient)]
|
[components/toolbar {:style wallet.styles/toolbar-bottom-line}
|
||||||
|
components/default-action
|
||||||
|
(i18n/label :t/recipient)]
|
||||||
[react/view components.styles/flex
|
[react/view components.styles/flex
|
||||||
[components/cartouche {}
|
[components/cartouche {}
|
||||||
(i18n/label :t/recipient)
|
(i18n/label :t/recipient)
|
||||||
[components/text-input {:multiline true
|
[components/text-input {:multiline true
|
||||||
|
:style styles/contact-code-text-input
|
||||||
:placeholder (i18n/label :t/recipient-code)
|
:placeholder (i18n/label :t/recipient-code)
|
||||||
:on-change-text #(reset! content %)}]]
|
:on-change-text #(reset! content %)}]]
|
||||||
[bottom-buttons/bottom-button
|
[bottom-buttons/bottom-button
|
||||||
|
|
|
@ -66,7 +66,8 @@
|
||||||
(views/letsubs [{:keys [address]} [:get-current-account]
|
(views/letsubs [{:keys [address]} [:get-current-account]
|
||||||
chain-id [:get-network-id]]
|
chain-id [:get-network-id]]
|
||||||
[comp/simple-screen
|
[comp/simple-screen
|
||||||
[comp/toolbar comp/default-action
|
[comp/toolbar {}
|
||||||
|
comp/default-action
|
||||||
(i18n/label :t/receive)
|
(i18n/label :t/receive)
|
||||||
[toolbar/actions [{:icon :icons/share
|
[toolbar/actions [{:icon :icons/share
|
||||||
:icon-opts {:color :white}
|
:icon-opts {:color :white}
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
(def toolbar
|
(def toolbar
|
||||||
{:background-color colors/blue})
|
{:background-color colors/blue})
|
||||||
|
|
||||||
|
(defstyle toolbar-bottom-line
|
||||||
|
{:ios {:border-bottom-width 1
|
||||||
|
:border-bottom-color colors/white-transparent}})
|
||||||
|
|
||||||
(defn button-container [enabled?]
|
(defn button-container [enabled?]
|
||||||
(merge {:flex-direction :row
|
(merge {:flex-direction :row
|
||||||
:align-items :center}
|
:align-items :center}
|
||||||
|
|
Loading…
Reference in New Issue