Setting the default value for the element prop

environments/review-update-zap-0lcnba/deployments/4740
Daniel Filemon 2024-07-29 03:05:11 +00:00
rodzic 90af1dd60f
commit bde0bb1235
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -24,7 +24,7 @@ interface IIcon extends Pick<React.SVGAttributes<SVGAElement>, 'strokeWidth'> {
}
/** Renders an SVG or image icon with optional counter. */
const Icon: React.FC<IIcon> = ({ src, alt, count, size, countMax, element, ...filteredProps }): JSX.Element => {
const Icon: React.FC<IIcon> = ({ src, alt, count, size, countMax, element = 'svg', ...filteredProps }): JSX.Element => {
return (
<div
className='relative flex shrink-0 flex-col'