fix message on empty search results

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
yenda 2019-03-22 11:01:20 +01:00 committed by Jakub Sokołowski
parent d63b16b138
commit d77c2f9c78
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 20 additions and 18 deletions

View File

@ -117,11 +117,13 @@
:key-fn first
;; true by default on iOS
:stickySectionHeadersEnabled false
:render-section-header-fn (fn [{:keys [title data]}]
:render-section-header-fn
(fn [{:keys [title data]}]
[react/view {:style {:height 40}}
[react/text {:style styles/filter-section-title}
(i18n/label title)]])
:render-section-footer-f (fn [{:keys [title data]}]
:render-section-footer-fn
(fn [{:keys [title data]}]
(when (empty? data)
[list/big-list-item
{:text (i18n/label (if (= title "messages")