Fix gwei input styles

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Stepan Lusnikov 2018-05-02 15:51:05 +08:00 committed by Julien Eluard
parent 90eb2aaaa1
commit 8636dea67a
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
3 changed files with 11 additions and 8 deletions

View File

@ -18,6 +18,7 @@
(def text-input
(merge text-content
{:font-size 15
:flex 1
:padding-bottom 0
:padding-top 0
:height 52

View File

@ -74,9 +74,10 @@
{:margin-top 24
:margin-bottom 16})
(def advanced-options-wrapper
{:align-items :center
:flex-direction :row})
(def gas-input-wrapper
{:align-items :center
:justify-content :space-between
:flex-direction :row})
(def advanced-options-text-wrapper
{:flex 1

View File

@ -126,13 +126,14 @@
[react/view {:flex-direction :row}
[wallet.components/cartouche {}
(i18n/label :t/gas-limit)
[react/text-input (merge styles/transaction-fee-input
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas %])
:default-value (str (money/to-fixed gas))
:accessibility-label :gas-limit-input})]]
[react/view styles/gas-input-wrapper
[react/text-input (merge styles/transaction-fee-input
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas %])
:default-value (str (money/to-fixed gas))
:accessibility-label :gas-limit-input})]]]
[wallet.components/cartouche {}
(i18n/label :t/gas-price)
[react/view styles/advanced-options-wrapper
[react/view styles/gas-input-wrapper
[react/text-input (merge styles/transaction-fee-input
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas-price (money/->wei :gwei %)])
:default-value (str (money/to-fixed (money/wei-> :gwei gas-price)))