[Glitch] Change moderation warning notification icon

Port de4a7bf531 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2024-04-26 17:33:15 +02:00
parent aac59a34ed
commit a4ce53df27

View file

@ -1,6 +1,6 @@
import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import WarningIcon from '@/material-icons/400-24px/warning-fill.svg?react'; import GavelIcon from '@/material-icons/400-24px/gavel.svg?react';
import { Icon } from 'flavours/glitch/components/icon'; import { Icon } from 'flavours/glitch/components/icon';
// This needs to be kept in sync with app/models/account_warning.rb // This needs to be kept in sync with app/models/account_warning.rb
@ -62,7 +62,7 @@ export const ModerationWarning: React.FC<Props> = ({ action, id, hidden }) => {
rel='noopener noreferrer' rel='noopener noreferrer'
className='notification__moderation-warning' className='notification__moderation-warning'
> >
<Icon id='warning' icon={WarningIcon} /> <Icon id='warning' icon={GavelIcon} />
<div className='notification__moderation-warning__content'> <div className='notification__moderation-warning__content'>
<p>{intl.formatMessage(messages[action])}</p> <p>{intl.formatMessage(messages[action])}</p>