parent
60b2dc9c63
commit
5c2bc27feb
|
@ -16,6 +16,7 @@
|
||||||
(or hashtags [])))
|
(or hashtags [])))
|
||||||
|
|
||||||
(defn title-content [show-search]
|
(defn title-content [show-search]
|
||||||
|
[view st/discovery-toolbar-content
|
||||||
(if show-search
|
(if show-search
|
||||||
[text-input {:style st/discovery-search-input
|
[text-input {:style st/discovery-search-input
|
||||||
:autoFocus true
|
:autoFocus true
|
||||||
|
@ -25,7 +26,7 @@
|
||||||
hashtags (get-hashtags search)]
|
hashtags (get-hashtags search)]
|
||||||
(dispatch [:broadcast-status search hashtags])))}]
|
(dispatch [:broadcast-status search hashtags])))}]
|
||||||
[view
|
[view
|
||||||
[text {:style st/discovery-title} "Discover"]]))
|
[text {:style st/discovery-title} "Discover"]])])
|
||||||
|
|
||||||
(defn toogle-search [current-value]
|
(defn toogle-search [current-value]
|
||||||
(dispatch [:set ::show-search (not current-value)]))
|
(dispatch [:set ::show-search (not current-value)]))
|
||||||
|
@ -38,8 +39,7 @@
|
||||||
:nav-action {:image {:source {:uri :icon_hamburger}
|
:nav-action {:image {:source {:uri :icon_hamburger}
|
||||||
:style st/hamburger-icon}
|
:style st/hamburger-icon}
|
||||||
:handler #(dispatch [:create-fake-discovery!])}
|
:handler #(dispatch [:create-fake-discovery!])}
|
||||||
:title "Add Participants"
|
:custom-content [title-content show-search]
|
||||||
:content [title-content show-search]
|
|
||||||
:action {:image {:source {:uri :icon_search}
|
:action {:image {:source {:uri :icon_search}
|
||||||
:style st/search-icon}
|
:style st/search-icon}
|
||||||
:handler #(toogle-search show-search)}}]
|
:handler #(toogle-search show-search)}}]
|
||||||
|
|
Loading…
Reference in New Issue