Skip to content

Commit

Permalink
Fixing bad commits
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Oct 28, 2024
1 parent 806aa3c commit 840a4be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react/src/PictureImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,15 @@ function makeSrcUrl(

// Make a source tag with srcset for the provided type and/or media attribute
function Source({
const srcSet = makeSrcSet(widths, imageLoader, { src, type, media })
return (
<source {...{ type, media, srcSet, sizes }} />
)
widths,
imageLoader,
sizes,
src,
type,
media,
}: ImageSourceProps): JSX.Element {
const srcSet = makeSrcSet(widths, imageLoader, { src, type, media });
return <source {...{ type, media, srcSet, sizes }} />;
}

// Make a srcset string from an array of width integers using the imageLoader
Expand Down

0 comments on commit 840a4be

Please sign in to comment.