[MM-55118] Replace usage of LocalizedIcon in 'fa_next_icon.tsx' with i/span tags (#25133)
Этот коммит содержится в:
@@ -3,24 +3,22 @@
|
||||
|
||||
import classNames from 'classnames';
|
||||
import React from 'react';
|
||||
import {defineMessage} from 'react-intl';
|
||||
|
||||
import LocalizedIcon from 'components/localized_icon';
|
||||
import {useIntl} from 'react-intl';
|
||||
|
||||
type Props = {
|
||||
additionalClassName?: string;
|
||||
}
|
||||
|
||||
const iconTitle = defineMessage({
|
||||
id: 'generic_icons.next',
|
||||
defaultMessage: 'Next Icon',
|
||||
});
|
||||
|
||||
const NextIcon = ({additionalClassName}: Props) => {
|
||||
const {formatMessage} = useIntl();
|
||||
|
||||
return (
|
||||
<LocalizedIcon
|
||||
<i
|
||||
className={classNames('icon icon-chevron-right', additionalClassName)}
|
||||
title={iconTitle}
|
||||
title={formatMessage({
|
||||
id: 'generic_icons.next',
|
||||
defaultMessage: 'Next Icon',
|
||||
})}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Ссылка в новой задаче
Block a user