mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
This commit is contained in:
parent
9258f2a513
commit
b11d3bed78
@ -7,6 +7,7 @@
|
|||||||
[legacy.status-im.ui.components.topbar :as topbar]
|
[legacy.status-im.ui.components.topbar :as topbar]
|
||||||
[legacy.status-im.ui.screens.wakuv2-settings.edit-node.styles :as styles]
|
[legacy.status-im.ui.screens.wakuv2-settings.edit-node.styles :as styles]
|
||||||
[re-frame.core :as re-frame]
|
[re-frame.core :as re-frame]
|
||||||
|
[react-native.safe-area :as safe-area]
|
||||||
[utils.i18n :as i18n])
|
[utils.i18n :as i18n])
|
||||||
(:require-macros [legacy.status-im.utils.views :as views]))
|
(:require-macros [legacy.status-im.utils.views :as views]))
|
||||||
|
|
||||||
@ -33,6 +34,7 @@
|
|||||||
[react/keyboard-avoiding-view
|
[react/keyboard-avoiding-view
|
||||||
{:style {:flex 1}
|
{:style {:flex 1}
|
||||||
:ignore-offset true}
|
:ignore-offset true}
|
||||||
|
[react/view {:flex 1 :padding-bottom (safe-area/get-bottom)}
|
||||||
[topbar/topbar {:title (i18n/label (if name :t/node-details :t/add-node))}]
|
[topbar/topbar {:title (i18n/label (if name :t/node-details :t/add-node))}]
|
||||||
[react/scroll-view {:keyboard-should-persist-taps :handled}
|
[react/scroll-view {:keyboard-should-persist-taps :handled}
|
||||||
[react/view styles/edit-node-view
|
[react/view styles/edit-node-view
|
||||||
@ -68,4 +70,4 @@
|
|||||||
:after :main-icon/next
|
:after :main-icon/next
|
||||||
:disabled (not is-valid?)
|
:disabled (not is-valid?)
|
||||||
:on-press #(re-frame/dispatch [:wakuv2.ui/save-node-pressed])}
|
:on-press #(re-frame/dispatch [:wakuv2.ui/save-node-pressed])}
|
||||||
(i18n/label :t/save)]}]])))
|
(i18n/label :t/save)]}]]])))
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
[legacy.status-im.ui.components.topbar :as topbar]
|
[legacy.status-im.ui.components.topbar :as topbar]
|
||||||
[legacy.status-im.ui.screens.wakuv2-settings.styles :as styles]
|
[legacy.status-im.ui.screens.wakuv2-settings.styles :as styles]
|
||||||
[re-frame.core :as re-frame]
|
[re-frame.core :as re-frame]
|
||||||
|
[react-native.safe-area :as safe-area]
|
||||||
[utils.i18n :as i18n]))
|
[utils.i18n :as i18n]))
|
||||||
|
|
||||||
(defn navigate-to-add-node
|
(defn navigate-to-add-node
|
||||||
@ -27,7 +28,7 @@
|
|||||||
(views/defview wakuv2-settings
|
(views/defview wakuv2-settings
|
||||||
[]
|
[]
|
||||||
(views/letsubs [nodes [:wakuv2-nodes/list]]
|
(views/letsubs [nodes [:wakuv2-nodes/list]]
|
||||||
[:<>
|
[react/view {:flex 1 :padding-bottom (safe-area/get-bottom)}
|
||||||
[topbar/topbar
|
[topbar/topbar
|
||||||
{:title (i18n/label :t/wakuv2-settings)
|
{:title (i18n/label :t/wakuv2-settings)
|
||||||
:navigation :none
|
:navigation :none
|
||||||
|
@ -185,3 +185,12 @@
|
|||||||
:crypto []
|
:crypto []
|
||||||
:other []}
|
:other []}
|
||||||
(vals currencies)))))
|
(vals currencies)))))
|
||||||
|
|
||||||
|
(re-frame/reg-sub
|
||||||
|
:wakuv2-nodes/validation-errors
|
||||||
|
:<- [:wakuv2-nodes/manage]
|
||||||
|
(fn [manage]
|
||||||
|
(set (keep
|
||||||
|
(fn [[k {:keys [error]}]]
|
||||||
|
(when error k))
|
||||||
|
manage))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user