Improved ShortUrlsRow test covering new status icon

This commit is contained in:
Alejandro Celaya
2022-12-19 20:00:52 +01:00
parent f8bcaed3ad
commit afc272c4d9
3 changed files with 195 additions and 18 deletions

View File

@@ -75,12 +75,8 @@ export const ShortUrlStatus: FC<ShortUrlStatusProps> = ({ shortUrl }) => {
return (
<>
<span
style={{ cursor: !description ? undefined : 'help' }}
ref={mutableRefToElementRef(tooltipRef)}
className={className}
>
<FontAwesomeIcon icon={icon} />
<span style={{ cursor: !description ? undefined : 'help' }} ref={mutableRefToElementRef(tooltipRef)}>
<FontAwesomeIcon icon={icon} className={className} />
</span>
<UncontrolledTooltip target={(() => tooltipRef.current) as any} placement="bottom">
{description}