Skip to content

Commit

Permalink
add id to image renderer (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzaacAyelin authored May 16, 2024
1 parent b02d935 commit f847463
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gallery/src/components/item/imageItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class ImageItem extends React.Component {
case GALLERY_CONSTS.loadingMode.BLUR:
preload = (
<ImageRenderer
id={id}
alt=""
key={'image_preload_blur-' + id}
src={createUrl(
Expand All @@ -186,6 +187,7 @@ class ImageItem extends React.Component {
case GALLERY_CONSTS.loadingMode.MAIN_COLOR:
preload = (
<ImageRenderer
id={id}
alt=""
key={'image_preload_main_color-' + id}
src={createUrl(
Expand Down Expand Up @@ -222,6 +224,7 @@ class ImageItem extends React.Component {

const highres = (
<ImageRenderer
id={id}
key={'image_highres-' + id}
className={`gallery-item-visible gallery-item gallery-item-preloaded`}
data-hook="gallery-item-image-img"
Expand Down

0 comments on commit f847463

Please sign in to comment.