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] [group-chat color display-name photo-path]
(if group-chat (if group-chat
[quo/group-avatar [quo/group-avatar
{:color color {:customization-color color
:size :small}] :size :x-small}]
[quo/user-avatar [quo/user-avatar
{:full-name display-name {:full-name display-name
:profile-picture photo-path :profile-picture photo-path

View File

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

View File

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

View File

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

View File

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

View File

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