kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Setting the default value for the element prop
rodzic
90af1dd60f
commit
bde0bb1235
|
@ -24,7 +24,7 @@ interface IIcon extends Pick<React.SVGAttributes<SVGAElement>, 'strokeWidth'> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Renders an SVG or image icon with optional counter. */
|
/** 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 (
|
return (
|
||||||
<div
|
<div
|
||||||
className='relative flex shrink-0 flex-col'
|
className='relative flex shrink-0 flex-col'
|
||||||
|
|
Ładowanie…
Reference in New Issue