chore: refactor using group-avatar component

This commit is contained in:
codemaster115 2023-08-10 09:39:45 -05:00
parent 9f12b4335c
commit eaa089b78c
No known key found for this signature in database
GPG Key ID: 745FA1711381B2B0
6 changed files with 12 additions and 12 deletions

View File

@ -10,8 +10,8 @@
[group-chat color display-name photo-path]
(if group-chat
[quo/group-avatar
{:color color
:size :small}]
{:customization-color color
:size :x-small}]
[quo/user-avatar
{:full-name display-name
:profile-picture photo-path

View File

@ -168,8 +168,8 @@
:margin-top 24
:padding-horizontal 20}}
[quo/group-avatar
{:color color
:size :medium}]
{:customization-color color
:size :small}]
[quo/text
{:weight :semi-bold
:size :heading-1

View File

@ -210,8 +210,8 @@
image-key photo-path
:muted? muted?}])
[quo/group-avatar
{:color color
:size :medium}]))
{:customization-color color
:size :small}]))
(defn notification
[{:keys [muted group-chat unviewed-messages-count unviewed-mentions-count]}]

View File

@ -10,7 +10,7 @@
(def tag-params
{:size :small
:color colors/primary-50
:customization-color :blue
:style style/user-avatar-tag
:text-style style/user-avatar-tag-text
:no-avatar-placeholder? true})

View File

@ -67,8 +67,8 @@
:context [[common/user-avatar-tag author]
(i18n/label :t/added-you-to)
[quo/group-avatar-tag chat-name
{:size :small
:color :purple}]]
{:size :x-small
:customization-color :purple}]]
:items (when-not (or accepted dismissed)
[{:type :button
:subtype :positive

View File

@ -124,9 +124,9 @@
shell.constants/private-group-chat-card
[quo/group-avatar
{:color customization-color
:size :large
:override-theme :dark}]
{:customization-color customization-color
:size :large
:override-theme :dark}]
(shell.constants/community-card
shell.constants/community-channel-card)