fix custom fee bottom sheet
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
dd3ded8656
commit
9b3fb2ac69
|
@ -47,7 +47,11 @@
|
|||
{window-height :height} (rn/use-window-dimensions)
|
||||
{:keys [keyboard-shown
|
||||
keyboard-height]} (rn/use-keyboard)
|
||||
keyboard-height-android-delta (if (and platform/android? keyboard-shown) (+ keyboard-height 20) 0)
|
||||
safe-area (safe-area/use-safe-area)
|
||||
window-height (- window-height (if platform/android?
|
||||
(+ 50 keyboard-height-android-delta)
|
||||
0))
|
||||
min-height (+ (* styles/vertical-padding 2) (:bottom safe-area))
|
||||
max-height (- window-height (:top safe-area) styles/margin-top)
|
||||
visible (react/state false)
|
||||
|
@ -199,7 +203,7 @@
|
|||
{:opacity opacity
|
||||
:background-color (:backdrop @colors/theme)}))}]]
|
||||
[animated/view {:style (merge (styles/content-container window-height)
|
||||
{:transform [{:translateY translate-y}
|
||||
{:transform [{:translateY (animated/add translate-y keyboard-height-android-delta)}
|
||||
{:translateY (* window-height 2)}]})}
|
||||
[gesture-handler/pan-gesture-handler (merge on-master-event
|
||||
{:ref master-ref
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
(money/->wei :gwei (:value-number max-fee-per-gas-edit)))
|
||||
(:value-number gas-edit))
|
||||
(money/bignumber 0))]
|
||||
[react/view
|
||||
[:<>
|
||||
[react/view {:style {:margin-horizontal 16 :margin-top 8}}
|
||||
[react/text {:style {:typography :title-bold}} (i18n/label :t/max-priority-fee)]
|
||||
[react/text {:style {:color (colors/get-color :text-02)
|
||||
|
|
Loading…
Reference in New Issue