diff --git a/packages/web-react/src/components/Icon/Icon.tsx b/packages/web-react/src/components/Icon/Icon.tsx index cd5a7a2154..9a272ce837 100644 --- a/packages/web-react/src/components/Icon/Icon.tsx +++ b/packages/web-react/src/components/Icon/Icon.tsx @@ -22,14 +22,6 @@ export const _Icon = (props: IconProps, ref: ForwardedRef) => { icon = `${title}${icon}`; } - // @deprecated Usage of `html-react-parser` will be required in the next major version. - if (htmlParser == null) { - warning( - false, - 'Icon component is not supported in SSR without use of `html-react-parser`. Please install, missing peer dependency.', - ); - } - if (isHtmlParserLoaded) { return ( // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -51,6 +43,9 @@ export const _Icon = (props: IconProps, ref: ForwardedRef) => { ); } + // @deprecated Usage of `html-react-parser` will be required in the next major version. + // @TODO: Remove this block in the next major version. + // @see { @link https://jira.almacareer.tech/browse/DS-1149 } return ( {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}