Skip to content

Commit

Permalink
Merge pull request #213 from chromaui/fix-invalid-img-attrs
Browse files Browse the repository at this point in the history
Avoid passing invalid attributes to `img` element
  • Loading branch information
ghengeveld committed Mar 11, 2024
2 parents ed00baa + ae0cfa4 commit e0ee1d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/SnapshotImageThumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ export const SnapshotImageThumb = ({
backgroundColor,
status,
thumbnailUrl,
...imgProps
}: SnapshotImageThumbProps & React.ImgHTMLAttributes<HTMLImageElement>) => {
return (
<Wrapper status={status} style={backgroundColor ? { backgroundColor } : {}}>
<img alt="Snapshot thumbnail" src={thumbnailUrl} {...imgProps} />
<img alt="Snapshot thumbnail" src={thumbnailUrl} />
{status === "positive" && <CheckIcon />}
</Wrapper>
);
Expand Down

0 comments on commit e0ee1d1

Please sign in to comment.