mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-29 09:56:01 +00:00
fix settings blinking and warnings
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
ee2dec5b27
commit
880424c07b
@ -44,7 +44,7 @@
|
|||||||
offset (reagent/atom 0)
|
offset (reagent/atom 0)
|
||||||
on-layout (fn [evt]
|
on-layout (fn [evt]
|
||||||
(reset! offset (oget evt "nativeEvent" "layout" "height")))]
|
(reset! offset (oget evt "nativeEvent" "layout" "height")))]
|
||||||
(fn [{:keys [extended-header] :as props} & children]
|
(fn [{:keys [extended-header] :as props} children]
|
||||||
[animated/view {:flex 1
|
[animated/view {:flex 1
|
||||||
:pointer-events :box-none}
|
:pointer-events :box-none}
|
||||||
[animated/code {:key (str @offset)
|
[animated/code {:key (str @offset)
|
||||||
|
@ -181,13 +181,15 @@
|
|||||||
active-contacts-count @(re-frame/subscribe [:contacts/active-count])
|
active-contacts-count @(re-frame/subscribe [:contacts/active-count])
|
||||||
tribute-to-talk @(re-frame/subscribe [:tribute-to-talk/profile])
|
tribute-to-talk @(re-frame/subscribe [:tribute-to-talk/profile])
|
||||||
registrar @(re-frame/subscribe [:ens.stateofus/registrar])]
|
registrar @(re-frame/subscribe [:ens.stateofus/registrar])]
|
||||||
(flat-list-content
|
[react/view
|
||||||
|
(for [item (flat-list-content
|
||||||
preferred-name registrar tribute-to-talk
|
preferred-name registrar tribute-to-talk
|
||||||
active-contacts-count mnemonic
|
active-contacts-count mnemonic
|
||||||
keycard-pairing notifications-enabled?)))
|
keycard-pairing notifications-enabled?)]
|
||||||
|
^{:key (str "item" (:title item))}
|
||||||
|
[list.views/flat-list-generic-render-fn item])]))
|
||||||
|
|
||||||
(defn my-profile []
|
(defn my-profile []
|
||||||
(fn []
|
|
||||||
(let [{:keys [public-key ens-verified preferred-name]
|
(let [{:keys [public-key ens-verified preferred-name]
|
||||||
:as account} @(re-frame/subscribe [:multiaccount])
|
:as account} @(re-frame/subscribe [:multiaccount])
|
||||||
on-share #(re-frame/dispatch [:show-popover
|
on-share #(re-frame/dispatch [:show-popover
|
||||||
@ -206,9 +208,4 @@
|
|||||||
:subtitle (if (and ens-verified public-key)
|
:subtitle (if (and ens-verified public-key)
|
||||||
(gfy/generate-gfy public-key)
|
(gfy/generate-gfy public-key)
|
||||||
public-key)})}
|
public-key)})}
|
||||||
[list.views/flat-list
|
[content]]]))
|
||||||
{:data (content)
|
|
||||||
:initial-num-to-render 3
|
|
||||||
:render-fn list.views/flat-list-generic-render-fn
|
|
||||||
:key-fn (fn [_ idx] (str idx))
|
|
||||||
:keyboard-should-persist-taps :handled}]]])))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user