From bde0bb1235e8f6ddf0da928f8194ebda2283c39b Mon Sep 17 00:00:00 2001 From: Daniel Filemon Date: Mon, 29 Jul 2024 03:05:11 +0000 Subject: [PATCH] Setting the default value for the element prop --- src/components/ui/icon/icon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/icon/icon.tsx b/src/components/ui/icon/icon.tsx index a07b2bb08..eaa4e9f0a 100644 --- a/src/components/ui/icon/icon.tsx +++ b/src/components/ui/icon/icon.tsx @@ -24,7 +24,7 @@ interface IIcon extends Pick, 'strokeWidth'> { } /** Renders an SVG or image icon with optional counter. */ -const Icon: React.FC = ({ src, alt, count, size, countMax, element, ...filteredProps }): JSX.Element => { +const Icon: React.FC = ({ src, alt, count, size, countMax, element = 'svg', ...filteredProps }): JSX.Element => { return (