fixes home loading indicator
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
4f95e0bcf4
commit
3cf282e75a
|
@ -98,7 +98,8 @@
|
||||||
{:keys [chats all-home-items search-filter]} [:home-items]
|
{:keys [chats all-home-items search-filter]} [:home-items]
|
||||||
{:keys [hide-home-tooltip?]} [:multiaccount]]
|
{:keys [hide-home-tooltip?]} [:multiaccount]]
|
||||||
(if loading?
|
(if loading?
|
||||||
[react/activity-indicator {:flex 1 :animating true}]
|
[react/view {:flex 1 :align-items :center :justify-content :center}
|
||||||
|
[react/activity-indicator {:animating true}]]
|
||||||
(if (and (empty? all-home-items) hide-home-tooltip? (not @search-active?))
|
(if (and (empty? all-home-items) hide-home-tooltip? (not @search-active?))
|
||||||
[welcome-blank-page]
|
[welcome-blank-page]
|
||||||
(let [data (if @search-active? chats all-home-items)]
|
(let [data (if @search-active? chats all-home-items)]
|
||||||
|
|
Loading…
Reference in New Issue