[Glitch] Change icon SVG imports to use a default import

Port 608f66f978 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput
2024-01-12 11:31:24 +01:00
committed by Claire
parent 464051c2d2
commit 8cad0a4d6b
113 changed files with 287 additions and 287 deletions

View File

@@ -8,7 +8,7 @@ import { withRouter } from 'react-router-dom';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { ReactComponent as FlagIcon } from '@material-symbols/svg-600/outlined/flag-fill.svg';
import FlagIcon from '@material-symbols/svg-600/outlined/flag-fill.svg?react';
import { HotKeys } from 'react-hotkeys';
import { Icon } from 'flavours/glitch/components/icon';

View File

@@ -8,7 +8,7 @@ import { withRouter } from 'react-router-dom';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { ReactComponent as PersonAddIcon } from '@material-symbols/svg-600/outlined/person_add-fill.svg';
import PersonAddIcon from '@material-symbols/svg-600/outlined/person_add-fill.svg?react';
import { HotKeys } from 'react-hotkeys';
import { Icon } from 'flavours/glitch/components/icon';

View File

@@ -3,7 +3,7 @@ import { PureComponent } from 'react';
import { FormattedMessage } from 'react-intl';
import { ReactComponent as DeleteForeverIcon } from '@material-symbols/svg-600/outlined/delete_forever.svg';
import DeleteForeverIcon from '@material-symbols/svg-600/outlined/delete_forever.svg?react';
import { Icon } from 'flavours/glitch/components/icon';

View File

@@ -3,12 +3,12 @@ import { PureComponent } from 'react';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { ReactComponent as HomeIcon } from '@material-symbols/svg-600/outlined/home-fill.svg';
import { ReactComponent as InsertChartIcon } from '@material-symbols/svg-600/outlined/insert_chart.svg';
import { ReactComponent as PersonAddIcon } from '@material-symbols/svg-600/outlined/person_add.svg';
import { ReactComponent as RepeatIcon } from '@material-symbols/svg-600/outlined/repeat.svg';
import { ReactComponent as ReplyAllIcon } from '@material-symbols/svg-600/outlined/reply_all.svg';
import { ReactComponent as StarIcon } from '@material-symbols/svg-600/outlined/star.svg';
import HomeIcon from '@material-symbols/svg-600/outlined/home-fill.svg?react';
import InsertChartIcon from '@material-symbols/svg-600/outlined/insert_chart.svg?react';
import PersonAddIcon from '@material-symbols/svg-600/outlined/person_add.svg?react';
import RepeatIcon from '@material-symbols/svg-600/outlined/repeat.svg?react';
import ReplyAllIcon from '@material-symbols/svg-600/outlined/reply_all.svg?react';
import StarIcon from '@material-symbols/svg-600/outlined/star.svg?react';
import { Icon } from 'flavours/glitch/components/icon';

View File

@@ -8,7 +8,7 @@ import { withRouter } from 'react-router-dom';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { ReactComponent as PersonAddIcon } from '@material-symbols/svg-600/outlined/person_add-fill.svg';
import PersonAddIcon from '@material-symbols/svg-600/outlined/person_add-fill.svg?react';
import { HotKeys } from 'react-hotkeys';
import { Icon } from 'flavours/glitch/components/icon';

View File

@@ -8,9 +8,9 @@ import { withRouter } from 'react-router-dom';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { ReactComponent as CheckIcon } from '@material-symbols/svg-600/outlined/check.svg';
import { ReactComponent as CloseIcon } from '@material-symbols/svg-600/outlined/close.svg';
import { ReactComponent as PersonIcon } from '@material-symbols/svg-600/outlined/person-fill.svg';
import CheckIcon from '@material-symbols/svg-600/outlined/check.svg?react';
import CloseIcon from '@material-symbols/svg-600/outlined/close.svg?react';
import PersonIcon from '@material-symbols/svg-600/outlined/person-fill.svg?react';
import { HotKeys } from 'react-hotkeys';
import { Avatar } from 'flavours/glitch/components/avatar';

View File

@@ -5,8 +5,8 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { ReactComponent as CloseIcon } from '@material-symbols/svg-600/outlined/close.svg';
import { ReactComponent as TuneIcon } from '@material-symbols/svg-600/outlined/tune.svg';
import CloseIcon from '@material-symbols/svg-600/outlined/close.svg?react';
import TuneIcon from '@material-symbols/svg-600/outlined/tune.svg?react';
import { requestBrowserPermission } from 'flavours/glitch/actions/notifications';
import { changeSetting } from 'flavours/glitch/actions/settings';

View File

@@ -9,7 +9,7 @@ import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { ReactComponent as CheckIcon } from '@material-symbols/svg-600/outlined/check.svg';
import CheckIcon from '@material-symbols/svg-600/outlined/check.svg?react';
import { Icon } from 'flavours/glitch/components/icon';

View File

@@ -11,9 +11,9 @@ import { List as ImmutableList } from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { ReactComponent as DeleteForeverIcon } from '@material-symbols/svg-600/outlined/delete_forever.svg';
import { ReactComponent as DoneAllIcon } from '@material-symbols/svg-600/outlined/done_all.svg';
import { ReactComponent as NotificationsIcon } from '@material-symbols/svg-600/outlined/notifications-fill.svg';
import DeleteForeverIcon from '@material-symbols/svg-600/outlined/delete_forever.svg?react';
import DoneAllIcon from '@material-symbols/svg-600/outlined/done_all.svg?react';
import NotificationsIcon from '@material-symbols/svg-600/outlined/notifications-fill.svg?react';
import { debounce } from 'lodash';
import { compareId } from 'flavours/glitch/compare_id';