From 840a4be0f20feae4b1f2883f7acd146e026fea73 Mon Sep 17 00:00:00 2001 From: Robert Reinhard Date: Mon, 28 Oct 2024 16:07:37 -0700 Subject: [PATCH] Fixing bad commits --- packages/react/src/PictureImage.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react/src/PictureImage.tsx b/packages/react/src/PictureImage.tsx index c3a2604..0d30c85 100644 --- a/packages/react/src/PictureImage.tsx +++ b/packages/react/src/PictureImage.tsx @@ -90,10 +90,6 @@ 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 ( - - ) widths, imageLoader, sizes, @@ -101,6 +97,8 @@ function Source({ type, media, }: ImageSourceProps): JSX.Element { + const srcSet = makeSrcSet(widths, imageLoader, { src, type, media }); + return ; } // Make a srcset string from an array of width integers using the imageLoader