fix empty section header warning
This commit is contained in:
parent
daa2ca491c
commit
36db3b8374
|
@ -266,6 +266,7 @@
|
||||||
[toolbar navigator @chat @show-actions-atom]
|
[toolbar navigator @chat @show-actions-atom]
|
||||||
(let [last-msg-id (:last-msg-id @chat)]
|
(let [last-msg-id (:last-msg-id @chat)]
|
||||||
[list-view {:dataSource datasource
|
[list-view {:dataSource datasource
|
||||||
|
:enableEmptySections true
|
||||||
:renderScrollComponent (fn [props]
|
:renderScrollComponent (fn [props]
|
||||||
(invertible-scroll-view (js->clj props)))
|
(invertible-scroll-view (js->clj props)))
|
||||||
:renderRow (fn [row section-id row-id]
|
:renderRow (fn [row section-id row-id]
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
:backgroundColor "white"}}
|
:backgroundColor "white"}}
|
||||||
[new-participants-toolbar navigator]
|
[new-participants-toolbar navigator]
|
||||||
[list-view {:dataSource contacts-ds
|
[list-view {:dataSource contacts-ds
|
||||||
|
:enableEmptySections true
|
||||||
:renderRow (fn [row section-id row-id]
|
:renderRow (fn [row section-id row-id]
|
||||||
(r/as-element [new-participant-contact (js->clj row :keywordize-keys true) navigator]))
|
(r/as-element [new-participant-contact (js->clj row :keywordize-keys true) navigator]))
|
||||||
:style {:backgroundColor "white"}}]]))))
|
:style {:backgroundColor "white"}}]]))))
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
:backgroundColor "white"}}
|
:backgroundColor "white"}}
|
||||||
[remove-participants-toolbar navigator]
|
[remove-participants-toolbar navigator]
|
||||||
[list-view {:dataSource contacts-ds
|
[list-view {:dataSource contacts-ds
|
||||||
|
:enableEmptySections true
|
||||||
:renderRow (fn [row section-id row-id]
|
:renderRow (fn [row section-id row-id]
|
||||||
(r/as-element [new-participant-contact (js->clj row :keywordize-keys true) navigator]))
|
(r/as-element [new-participant-contact (js->clj row :keywordize-keys true) navigator]))
|
||||||
:style {:backgroundColor "white"}}]]))))
|
:style {:backgroundColor "white"}}]]))))
|
||||||
|
|
|
@ -65,5 +65,6 @@
|
||||||
:backgroundColor color-white
|
:backgroundColor color-white
|
||||||
:borderRadius 5}}
|
:borderRadius 5}}
|
||||||
[list-view {:dataSource (to-datasource suggestions)
|
[list-view {:dataSource (to-datasource suggestions)
|
||||||
|
:enableEmptySections true
|
||||||
:renderRow render-row
|
:renderRow render-row
|
||||||
:style {}}]])))))
|
:style {}}]])))))
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
:backgroundColor "white"}}
|
:backgroundColor "white"}}
|
||||||
[chats-list-toolbar]
|
[chats-list-toolbar]
|
||||||
[list-view {:dataSource datasource
|
[list-view {:dataSource datasource
|
||||||
|
:enableEmptySections true
|
||||||
:renderRow (fn [row section-id row-id]
|
:renderRow (fn [row section-id row-id]
|
||||||
(r/as-element [chat-list-item row navigator]))
|
(r/as-element [chat-list-item row navigator]))
|
||||||
:style {:backgroundColor "white"}}]
|
:style {:backgroundColor "white"}}]
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
:lineHeight 20}}
|
:lineHeight 20}}
|
||||||
"Add members"]]]
|
"Add members"]]]
|
||||||
[list-view {:dataSource contacts-ds
|
[list-view {:dataSource contacts-ds
|
||||||
|
:enableEmptySections true
|
||||||
:renderRow (fn [row section-id row-id]
|
:renderRow (fn [row section-id row-id]
|
||||||
(r/as-element [new-group-contact (js->clj row :keywordize-keys true) navigator]))
|
(r/as-element [new-group-contact (js->clj row :keywordize-keys true) navigator]))
|
||||||
:style {:backgroundColor "white"}}]]]))))
|
:style {:backgroundColor "white"}}]]]))))
|
||||||
|
|
|
@ -47,5 +47,6 @@
|
||||||
[contact-list-toolbar navigator]
|
[contact-list-toolbar navigator]
|
||||||
(when contacts-ds
|
(when contacts-ds
|
||||||
[list-view {:dataSource contacts-ds
|
[list-view {:dataSource contacts-ds
|
||||||
|
:enableEmptySections true
|
||||||
:renderRow (partial render-row navigator)
|
:renderRow (partial render-row navigator)
|
||||||
:style {:backgroundColor "white"}}])]))))
|
:style {:backgroundColor "white"}}])]))))
|
||||||
|
|
Loading…
Reference in New Issue