Skip to content

Commit

Permalink
Change moderation warning notification icon (mastodon#30081)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Apr 26, 2024
1 parent 0cf6cf4 commit de4a7bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 'mastodon/components/icon';

// This needs to be kept in sync with app/models/account_warning.rb
Expand Down Expand Up @@ -62,7 +62,7 @@ export const ModerationWarning: React.FC<Props> = ({ action, id, hidden }) => {
rel='noopener noreferrer'
className='notification__moderation-warning'
>
<Icon id='warning' icon={WarningIcon} />
<Icon id='warning' icon={GavelIcon} />

<div className='notification__moderation-warning__content'>
<p>{intl.formatMessage(messages[action])}</p>
Expand Down
1 change: 1 addition & 0 deletions app/javascript/material-icons/400-24px/gavel-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/javascript/material-icons/400-24px/gavel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit de4a7bf

Please sign in to comment.