mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-21 00:29:47 +00:00
Change moderation warning notification icon (#30081)
This commit is contained in:
parent
0cf6cf457d
commit
de4a7bf531
|
@ -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 'mastodon/components/icon';
|
import { Icon } from 'mastodon/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>
|
||||||
|
|
1
app/javascript/material-icons/400-24px/gavel-fill.svg
Normal file
1
app/javascript/material-icons/400-24px/gavel-fill.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M160-120v-80h480v80H160Zm226-194L160-540l84-86 228 226-86 86Zm254-254L414-796l86-84 226 226-86 86Zm184 408L302-682l56-56 522 522-56 56Z"/></svg>
|
After Width: | Height: | Size: 241 B |
1
app/javascript/material-icons/400-24px/gavel.svg
Normal file
1
app/javascript/material-icons/400-24px/gavel.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M160-120v-80h480v80H160Zm226-194L160-540l84-86 228 226-86 86Zm254-254L414-796l86-84 226 226-86 86Zm184 408L302-682l56-56 522 522-56 56Z"/></svg>
|
After Width: | Height: | Size: 241 B |
Loading…
Reference in a new issue