From 97cfe821855edb1495a12542a98aabe116d63e50 Mon Sep 17 00:00:00 2001 From: Pavel Klibani Date: Tue, 13 Feb 2024 15:33:39 +0100 Subject: [PATCH] fixup! Fix(web-react): Add forwardRef to Icon components --- packages/web-react/src/components/Icon/Icon.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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 */}