chore: refactor using group-avatar component
This commit is contained in:
parent
9f12b4335c
commit
eaa089b78c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]}]
|
||||
|
|
|
@ -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})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue