Skip to content

Commit

Permalink
Avoid passing invalid attributes to img tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Mar 11, 2024
1 parent 28a7cc1 commit ae0cfa4
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 ae0cfa4

Please sign in to comment.