Skip to content

Commit 4789ed3

Browse files
committed
Move props
1 parent 0910144 commit 4789ed3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/docImage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ export default function DocImage({
120120

121121
return (
122122
<ImageLightbox
123+
{...props}
123124
src={finalSrc}
124125
imgPath={imgPath}
125-
{...props}
126126
width={width}
127127
height={height}
128128
isManualDimensions={isManual}

src/components/imageLightbox/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ export function ImageLightbox({
117117
return (
118118
<Image
119119
src={renderedSrc}
120+
width={dimensions.width}
121+
height={dimensions.height}
120122
style={imageStyle}
121123
className={imageClassName}
122124
alt={alt}
123125
priority={!isInline}
124126
{...imageCompatibleProps}
125-
width={dimensions.width}
126-
height={dimensions.height}
127127
/>
128128
);
129129
}

0 commit comments

Comments
 (0)