mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-15 19:24:36 +00:00
discoveries toolbar
Former-commit-id: 5f0862e3b79cd2aa2215c2d185f1eb7f93f8d9de
This commit is contained in:
parent
60b2dc9c63
commit
5c2bc27feb
@ -16,6 +16,7 @@
|
||||
(or hashtags [])))
|
||||
|
||||
(defn title-content [show-search]
|
||||
[view st/discovery-toolbar-content
|
||||
(if show-search
|
||||
[text-input {:style st/discovery-search-input
|
||||
:autoFocus true
|
||||
@ -25,7 +26,7 @@
|
||||
hashtags (get-hashtags search)]
|
||||
(dispatch [:broadcast-status search hashtags])))}]
|
||||
[view
|
||||
[text {:style st/discovery-title} "Discover"]]))
|
||||
[text {:style st/discovery-title} "Discover"]])])
|
||||
|
||||
(defn toogle-search [current-value]
|
||||
(dispatch [:set ::show-search (not current-value)]))
|
||||
@ -38,8 +39,7 @@
|
||||
:nav-action {:image {:source {:uri :icon_hamburger}
|
||||
:style st/hamburger-icon}
|
||||
:handler #(dispatch [:create-fake-discovery!])}
|
||||
:title "Add Participants"
|
||||
:content [title-content show-search]
|
||||
:custom-content [title-content show-search]
|
||||
:action {:image {:source {:uri :icon_search}
|
||||
:style st/search-icon}
|
||||
:handler #(toogle-search show-search)}}]
|
||||
|
Loading…
x
Reference in New Issue
Block a user