mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
[#10928] Always show blocked users
This commit is contained in:
parent
cd4b2110c6
commit
292df1439c
@ -32,7 +32,6 @@
|
|||||||
contacts [:contacts/active]]
|
contacts [:contacts/active]]
|
||||||
[react/view {:flex 1}
|
[react/view {:flex 1}
|
||||||
[topbar/topbar {:title :t/contacts}]
|
[topbar/topbar {:title :t/contacts}]
|
||||||
(if (seq contacts)
|
|
||||||
[react/scroll-view {:flex 1}
|
[react/scroll-view {:flex 1}
|
||||||
[add-new-contact]
|
[add-new-contact]
|
||||||
(when (pos? blocked-contacts-count)
|
(when (pos? blocked-contacts-count)
|
||||||
@ -46,19 +45,18 @@
|
|||||||
:accessory :text
|
:accessory :text
|
||||||
:accessory-text blocked-contacts-count
|
:accessory-text blocked-contacts-count
|
||||||
:on-press #(re-frame/dispatch [:navigate-to :blocked-users-list])}]])
|
:on-press #(re-frame/dispatch [:navigate-to :blocked-users-list])}]])
|
||||||
|
(if (seq contacts)
|
||||||
[list.views/flat-list
|
[list.views/flat-list
|
||||||
{:data contacts
|
{:data contacts
|
||||||
:key-fn :address
|
:key-fn :address
|
||||||
:render-fn contacts-list-item}]]
|
:render-fn contacts-list-item}]
|
||||||
[react/view {:flex 1}
|
|
||||||
[add-new-contact]
|
|
||||||
[react/view {:align-items :center :flex 1 :justify-content :center}
|
[react/view {:align-items :center :flex 1 :justify-content :center}
|
||||||
[react/text {:style {:color colors/gray :margin-vertical 24}}
|
[react/text {:style {:color colors/gray :margin-vertical 24}}
|
||||||
(i18n/label :t/you-dont-have-contacts)]
|
(i18n/label :t/you-dont-have-contacts)]
|
||||||
[quo/button
|
[quo/button
|
||||||
{:accessibility-label :invite-friends
|
{:accessibility-label :invite-friends
|
||||||
:on-press #(list-selection/open-share {:message (i18n/label :t/get-status-at)})}
|
:on-press #(list-selection/open-share {:message (i18n/label :t/get-status-at)})}
|
||||||
(i18n/label :t/invite-friends)]]])]))
|
(i18n/label :t/invite-friends)]])]]))
|
||||||
|
|
||||||
(defview blocked-users-list []
|
(defview blocked-users-list []
|
||||||
(letsubs [blocked-contacts [:contacts/blocked]]
|
(letsubs [blocked-contacts [:contacts/blocked]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user