mirror of
https://github.com/status-im/status-react.git
synced 2025-02-26 01:25:33 +00:00
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]
|
[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
|
||||||
|
@ -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
|
||||||
|
@ -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]}]
|
||||||
|
@ -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})
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user