[#4490]: Advanced button is not collapsed on Profile tab when switching to another tab
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
0498d94d08
commit
870c67abc0
|
@ -128,6 +128,7 @@
|
||||||
(defview advanced [{:keys [network networks dev-mode?]}]
|
(defview advanced [{:keys [network networks dev-mode?]}]
|
||||||
(letsubs [advanced? [:get :my-profile/advanced?]
|
(letsubs [advanced? [:get :my-profile/advanced?]
|
||||||
{:keys [sharing-usage-data?]} [:get-current-account]]
|
{:keys [sharing-usage-data?]} [:get-current-account]]
|
||||||
|
{:component-will-unmount #(re-frame/dispatch [:set :my-profile/advanced? false])}
|
||||||
[react/view
|
[react/view
|
||||||
[react/touchable-highlight {:on-press #(re-frame/dispatch [:set :my-profile/advanced? (not advanced?)])
|
[react/touchable-highlight {:on-press #(re-frame/dispatch [:set :my-profile/advanced? (not advanced?)])
|
||||||
:style styles/advanced-button}
|
:style styles/advanced-button}
|
||||||
|
|
Loading…
Reference in New Issue