Continue button is invisible behind keyboard in Add Address To Watch … (#17940)
This commit is contained in:
parent
a9a17aaae8
commit
6ccea1ddb2
|
@ -5,12 +5,6 @@
|
||||||
:margin-top 12
|
:margin-top 12
|
||||||
:margin-bottom 20})
|
:margin-bottom 20})
|
||||||
|
|
||||||
(def button-container
|
|
||||||
{:position :absolute
|
|
||||||
:bottom 22
|
|
||||||
:left 20
|
|
||||||
:right 20})
|
|
||||||
|
|
||||||
(def scan
|
(def scan
|
||||||
{:align-self
|
{:align-self
|
||||||
:flex-end})
|
:flex-end})
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
[react-native.clipboard :as clipboard]
|
[react-native.clipboard :as clipboard]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[reagent.core :as reagent]
|
[reagent.core :as reagent]
|
||||||
|
[status-im2.common.floating-button-page.view :as floating-button-page]
|
||||||
[status-im2.contexts.wallet.add-address-to-watch.style :as style]
|
[status-im2.contexts.wallet.add-address-to-watch.style :as style]
|
||||||
[status-im2.contexts.wallet.common.validation :as validation]
|
[status-im2.contexts.wallet.common.validation :as validation]
|
||||||
[utils.i18n :as i18n]
|
[utils.i18n :as i18n]
|
||||||
|
@ -82,12 +83,22 @@
|
||||||
(fn []
|
(fn []
|
||||||
[rn/view
|
[rn/view
|
||||||
{:style {:flex 1}}
|
{:style {:flex 1}}
|
||||||
[quo/page-nav
|
[floating-button-page/view
|
||||||
|
{:header [quo/page-nav
|
||||||
{:type :no-title
|
{:type :no-title
|
||||||
:icon-name :i/close
|
:icon-name :i/close
|
||||||
:on-press (fn []
|
:on-press (fn []
|
||||||
(rf/dispatch [:wallet/clean-scanned-address])
|
(rf/dispatch [:wallet/clean-scanned-address])
|
||||||
(rf/dispatch [:navigate-back]))}]
|
(rf/dispatch [:navigate-back]))}]
|
||||||
|
:footer
|
||||||
|
[quo/button
|
||||||
|
{:customization-color customization-color
|
||||||
|
:disabled? (string/blank? @input-value)
|
||||||
|
:on-press #(rf/dispatch [:navigate-to
|
||||||
|
:confirm-address-to-watch
|
||||||
|
{:address @input-value}])
|
||||||
|
:container-style {:z-index 2}}
|
||||||
|
(i18n/label :t/continue)]}
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:container-style style/header-container
|
{:container-style style/header-container
|
||||||
:title (i18n/label :t/add-address)
|
:title (i18n/label :t/add-address)
|
||||||
|
@ -104,12 +115,4 @@
|
||||||
:icon :i/info
|
:icon :i/info
|
||||||
:type :error
|
:type :error
|
||||||
:style style/info-message}
|
:style style/info-message}
|
||||||
@validation-msg])
|
@validation-msg])]])))
|
||||||
[quo/button
|
|
||||||
{:customization-color customization-color
|
|
||||||
:disabled? (string/blank? @input-value)
|
|
||||||
:on-press #(rf/dispatch [:navigate-to
|
|
||||||
:confirm-address-to-watch
|
|
||||||
{:address @input-value}])
|
|
||||||
:container-style style/button-container}
|
|
||||||
(i18n/label :t/continue)]])))
|
|
||||||
|
|
Loading…
Reference in New Issue