fix: channel list-item not clickable (#14469)

This commit is contained in:
Christoph Pader 2022-12-02 11:45:26 +01:00 committed by GitHub
parent 2e68fb22f5
commit f3ad8beb6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 45 additions and 45 deletions

View File

@ -10,6 +10,7 @@
(defn list-item [{:keys [name locked? mentions-count unread-messages?
muted? is-active-channel? emoji channel-color on-press]
:or {channel-color colors/primary-50}}]
[rn/touchable-opacity {:on-press on-press}
[rn/view {:style (merge {:height 48
:display :flex
:border-radius 12
@ -20,8 +21,7 @@
:padding-left 12
:padding-right 12}
(when is-active-channel?
{:background-color (colors/theme-alpha channel-color 0.05 0.05)}))
:on-press on-press}
{:background-color (colors/theme-alpha channel-color 0.05 0.05)}))}
[rn/view {:display :flex
:flex-direction :row
:justify-content :flex-start
@ -54,4 +54,4 @@
unread-messages?)
[quo2.icons/icon :i/channel-notification
{:size 20
:no-color true}])]])
:no-color true}])]]])