Improve community avatar for shell card (#14813)

This commit is contained in:
Parvesh Monu 2023-01-19 00:12:49 +05:30 committed by GitHub
parent ab1fd43f28
commit b370514ef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -120,10 +120,13 @@
(shell.constants/community-card (shell.constants/community-card
shell.constants/community-channel-card) shell.constants/community-channel-card)
(if (:source avatar-params) (cond
(:source avatar-params)
[fast-image/fast-image [fast-image/fast-image
{:source (:source avatar-params) {:source (:source avatar-params)
:style (style/community-avatar customization-color)}] :style (style/community-avatar customization-color)}]
(:name avatar-params)
;; TODO - Update to fall back community avatar once designs are available ;; TODO - Update to fall back community avatar once designs are available
[rn/view {:style (style/community-avatar customization-color)} [rn/view {:style (style/community-avatar customization-color)}
[quo/text [quo/text