Change icon SVG imports to use a default import (#28709)

This commit is contained in:
Renaud Chaput 2024-01-12 11:31:24 +01:00 committed by GitHub
parent c6684aa1e3
commit 608f66f978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
106 changed files with 255 additions and 250 deletions

View file

@ -6,8 +6,8 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import { ReactComponent as AddIcon } from '@material-symbols/svg-600/outlined/add.svg';
import { ReactComponent as CloseIcon } from '@material-symbols/svg-600/outlined/close.svg';
import AddIcon from '@material-symbols/svg-600/outlined/add.svg?react';
import CloseIcon from '@material-symbols/svg-600/outlined/close.svg?react';
import { removeFromListEditor, addToListEditor } from '../../../actions/lists';
import { Avatar } from '../../../components/avatar';

View file

@ -5,7 +5,7 @@ import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { ReactComponent as CheckIcon } from '@material-symbols/svg-600/outlined/check.svg';
import CheckIcon from '@material-symbols/svg-600/outlined/check.svg?react';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import { IconButton } from '../../../components/icon_button';

View file

@ -7,8 +7,8 @@ import classNames from 'classnames';
import { connect } from 'react-redux';
import { ReactComponent as CancelIcon } from '@material-symbols/svg-600/outlined/cancel.svg';
import { ReactComponent as SearchIcon } from '@material-symbols/svg-600/outlined/search.svg';
import CancelIcon from '@material-symbols/svg-600/outlined/cancel.svg?react';
import SearchIcon from '@material-symbols/svg-600/outlined/search.svg?react';
import { Icon } from 'mastodon/components/icon';