fix message on empty search results
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d63b16b138
commit
d77c2f9c78
|
@ -117,23 +117,25 @@
|
||||||
:key-fn first
|
:key-fn first
|
||||||
;; true by default on iOS
|
;; true by default on iOS
|
||||||
:stickySectionHeadersEnabled false
|
:stickySectionHeadersEnabled false
|
||||||
:render-section-header-fn (fn [{:keys [title data]}]
|
:render-section-header-fn
|
||||||
[react/view {:style {:height 40}}
|
(fn [{:keys [title data]}]
|
||||||
[react/text {:style styles/filter-section-title}
|
[react/view {:style {:height 40}}
|
||||||
(i18n/label title)]])
|
[react/text {:style styles/filter-section-title}
|
||||||
:render-section-footer-f (fn [{:keys [title data]}]
|
(i18n/label title)]])
|
||||||
(when (empty? data)
|
:render-section-footer-fn
|
||||||
[list/big-list-item
|
(fn [{:keys [title data]}]
|
||||||
{:text (i18n/label (if (= title "messages")
|
(when (empty? data)
|
||||||
:t/messages-search-coming-soon
|
[list/big-list-item
|
||||||
:t/no-result))
|
{:text (i18n/label (if (= title "messages")
|
||||||
:text-color colors/gray
|
:t/messages-search-coming-soon
|
||||||
:hide-chevron? true
|
:t/no-result))
|
||||||
:action-fn #()
|
:text-color colors/gray
|
||||||
:icon (case title
|
:hide-chevron? true
|
||||||
"messages" :main-icons/private-chat
|
:action-fn #()
|
||||||
"browser" :main-icons/browser
|
:icon (case title
|
||||||
"chats" :main-icons/message)
|
"messages" :main-icons/private-chat
|
||||||
:icon-color colors/gray}]))
|
"browser" :main-icons/browser
|
||||||
|
"chats" :main-icons/message)
|
||||||
|
:icon-color colors/gray}]))
|
||||||
:render-fn (fn [home-item]
|
:render-fn (fn [home-item]
|
||||||
[inner-item/home-list-item home-item])}])
|
[inner-item/home-list-item home-item])}])
|
||||||
|
|
Loading…
Reference in New Issue