[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 classNames from 'classnames';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {defineMessage} from 'react-intl';
|
import {useIntl} from 'react-intl';
|
||||||
|
|
||||||
import LocalizedIcon from 'components/localized_icon';
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
additionalClassName?: string;
|
additionalClassName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconTitle = defineMessage({
|
|
||||||
id: 'generic_icons.next',
|
|
||||||
defaultMessage: 'Next Icon',
|
|
||||||
});
|
|
||||||
|
|
||||||
const NextIcon = ({additionalClassName}: Props) => {
|
const NextIcon = ({additionalClassName}: Props) => {
|
||||||
|
const {formatMessage} = useIntl();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<LocalizedIcon
|
<i
|
||||||
className={classNames('icon icon-chevron-right', additionalClassName)}
|
className={classNames('icon icon-chevron-right', additionalClassName)}
|
||||||
title={iconTitle}
|
title={formatMessage({
|
||||||
|
id: 'generic_icons.next',
|
||||||
|
defaultMessage: 'Next Icon',
|
||||||
|
})}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user