Fix :show-desktop-tab usage

This commit is contained in:
Vitaliy Vlasov 2018-08-27 16:13:56 +03:00
parent a08a98c491
commit 9136dd0d3f
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964
1 changed files with 1 additions and 3 deletions

View File

@ -51,9 +51,7 @@
(views/letsubs [cnt [count-subscription]]
[react/touchable-highlight {:style (merge tabs.styles/tab-container {:flex 1})
:disabled active?
:on-press #(do
(re-frame/dispatch [:navigate-to :home])
(re-frame/dispatch [:show-desktop-tab view-id]))}
:on-press #(re-frame/dispatch [:show-desktop-tab view-id])}
[react/view
[content active? (if (= view-id :home) cnt nil)]]]))