mirror of
https://github.com/status-im/status-react.git
synced 2025-02-26 17:41:03 +00:00
Fix gwei input styles
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
90eb2aaaa1
commit
8636dea67a
@ -18,6 +18,7 @@
|
|||||||
(def text-input
|
(def text-input
|
||||||
(merge text-content
|
(merge text-content
|
||||||
{:font-size 15
|
{:font-size 15
|
||||||
|
:flex 1
|
||||||
:padding-bottom 0
|
:padding-bottom 0
|
||||||
:padding-top 0
|
:padding-top 0
|
||||||
:height 52
|
:height 52
|
||||||
|
@ -74,9 +74,10 @@
|
|||||||
{:margin-top 24
|
{:margin-top 24
|
||||||
:margin-bottom 16})
|
:margin-bottom 16})
|
||||||
|
|
||||||
(def advanced-options-wrapper
|
(def gas-input-wrapper
|
||||||
{:align-items :center
|
{:align-items :center
|
||||||
:flex-direction :row})
|
:justify-content :space-between
|
||||||
|
:flex-direction :row})
|
||||||
|
|
||||||
(def advanced-options-text-wrapper
|
(def advanced-options-text-wrapper
|
||||||
{:flex 1
|
{:flex 1
|
||||||
|
@ -126,13 +126,14 @@
|
|||||||
[react/view {:flex-direction :row}
|
[react/view {:flex-direction :row}
|
||||||
[wallet.components/cartouche {}
|
[wallet.components/cartouche {}
|
||||||
(i18n/label :t/gas-limit)
|
(i18n/label :t/gas-limit)
|
||||||
[react/text-input (merge styles/transaction-fee-input
|
[react/view styles/gas-input-wrapper
|
||||||
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas %])
|
[react/text-input (merge styles/transaction-fee-input
|
||||||
:default-value (str (money/to-fixed gas))
|
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas %])
|
||||||
:accessibility-label :gas-limit-input})]]
|
:default-value (str (money/to-fixed gas))
|
||||||
|
:accessibility-label :gas-limit-input})]]]
|
||||||
[wallet.components/cartouche {}
|
[wallet.components/cartouche {}
|
||||||
(i18n/label :t/gas-price)
|
(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
|
[react/text-input (merge styles/transaction-fee-input
|
||||||
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas-price (money/->wei :gwei %)])
|
{: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)))
|
:default-value (str (money/to-fixed (money/wei-> :gwei gas-price)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user