style(message): replace legacy icons
This commit is contained in:
parent
72b0bb3fa4
commit
e9471d2843
4 changed files with 5 additions and 13 deletions
|
@ -33,13 +33,13 @@ class Dossiers::MessageComponent < ApplicationComponent
|
|||
end
|
||||
end
|
||||
|
||||
def icon_path
|
||||
def icon
|
||||
if commentaire.sent_by_system?
|
||||
'icons/mail.svg'
|
||||
dsfr_icon('fr-icon-message-2-fill', :sm, :mr)
|
||||
elsif commentaire.sent_by?(connected_user)
|
||||
'icons/account-circle.svg'
|
||||
dsfr_icon('fr-icon-user-fill', :sm, :mr)
|
||||
else
|
||||
'icons/blue-person.svg'
|
||||
dsfr_icon('fr-icon-discuss-fill', :sm, :mr)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue