Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: P. Reis <patrickpereirareal1@gmail.com>
This commit is contained in:
parent
c5c469541a
commit
3361bf1eb2
|
@ -21,7 +21,7 @@ interface IIcon extends Pick<React.SVGAttributes<SVGAElement>, 'strokeWidth'> {
|
||||||
'data-testid'?: string;
|
'data-testid'?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Renders and SVG icon with optional counter. */
|
/** Renders an SVG or image icon with optional counter. */
|
||||||
const Icon: React.FC<IIcon> = ({ src, alt, count, size, countMax, ...filteredProps }): JSX.Element => {
|
const Icon: React.FC<IIcon> = ({ src, alt, count, size, countMax, ...filteredProps }): JSX.Element => {
|
||||||
|
|
||||||
const isSVG = src.endsWith('.svg');
|
const isSVG = src.endsWith('.svg');
|
||||||
|
|
Loading…
Reference in New Issue