[#11743] Fix crash on network change
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
37284051dc
commit
c2f513f67e
|
@ -6,7 +6,8 @@
|
||||||
[status-im.ui.screens.network.styles :as st]
|
[status-im.ui.screens.network.styles :as st]
|
||||||
[status-im.ui.screens.network.views :as network-settings]
|
[status-im.ui.screens.network.views :as network-settings]
|
||||||
[status-im.ui.components.react :as react]
|
[status-im.ui.components.react :as react]
|
||||||
[status-im.ui.components.topbar :as topbar])
|
[status-im.ui.components.topbar :as topbar]
|
||||||
|
[status-im.utils.debounce :refer [dispatch-and-chill]])
|
||||||
(:require-macros [status-im.utils.views :as views]))
|
(:require-macros [status-im.utils.views :as views]))
|
||||||
|
|
||||||
(views/defview network-details []
|
(views/defview network-details []
|
||||||
|
@ -24,7 +25,7 @@
|
||||||
{:name name
|
{:name name
|
||||||
:connected? connected?}]
|
:connected? connected?}]
|
||||||
(when-not connected?
|
(when-not connected?
|
||||||
[react/touchable-highlight {:on-press #(re-frame/dispatch [::network/connect-network-pressed id])}
|
[react/touchable-highlight {:on-press #(dispatch-and-chill [::network/connect-network-pressed id] 1000)}
|
||||||
[react/view st/connect-button-container
|
[react/view st/connect-button-container
|
||||||
[react/view {:style st/connect-button
|
[react/view {:style st/connect-button
|
||||||
:accessibility-label :network-connect-button}
|
:accessibility-label :network-connect-button}
|
||||||
|
|
Loading…
Reference in New Issue