Silence prop warnings in test suite

This commit is contained in:
Justin 2022-04-04 15:05:15 -04:00
parent dcc90bc99a
commit 827bca3fd6
8 changed files with 10 additions and 12 deletions

Binary file not shown.

Binary file not shown.

View file

@ -8,18 +8,16 @@ interface IIcon {
src: string, src: string,
} }
const Icon = ({ src, alt, count, ...filteredProps }: IIcon): JSX.Element => { const Icon = ({ src, alt, count, ...filteredProps }: IIcon): JSX.Element => (
return ( <div className='relative'>
<div className='relative'> {count ? (
{count ? ( <span className='absolute -top-2 -right-3 block px-1.5 py-0.5 bg-accent-500 text-xs text-white rounded-full ring-2 ring-white'>
<span className='absolute -top-2 -right-3 block px-1.5 py-0.5 bg-accent-500 text-xs text-white rounded-full ring-2 ring-white'> {count}
{count} </span>
</span> ) : null}
) : null}
<InlineSVG src={src} title={alt} {...filteredProps} /> <InlineSVG src={src} title={alt} {...filteredProps} />
</div> </div>
); );
};
export default Icon; export default Icon;

Binary file not shown.