fixed active button position

This commit is contained in:
Andrey Shovkoplyas 2017-03-30 11:07:14 +03:00 committed by Roman Volosovskyi
parent d6a589b5bc
commit 60680f7293

View File

@ -140,6 +140,7 @@
edit? [:get-in [:contacts-ui-props :edit?]]
groups [:all-added-groups]
tabs-hidden? [:tabs-hidden?]]
[view {:flex 1}
[view (st/contacts-list-container tabs-hidden?)
(if edit?
[toolbar-edit]
@ -156,6 +157,6 @@
:edit? edit?}])]
[view st/empty-contact-groups
[react/icon :group_big st/empty-contacts-icon]
[text {:style st/empty-contacts-text} (label :t/no-contacts)]])
[text {:style st/empty-contacts-text} (label :t/no-contacts)]])]
(when (and (not edit?) (get-in platform-specific [:contacts :action-button?]))
[contacts-action-button])])