chore: remove extra classes lightbox

This commit is contained in:
MTG2000
2022-03-29 17:08:14 +03:00
parent 2ba51deeab
commit ae99c11da7

View File

@@ -30,9 +30,8 @@ export default function Lightbox(props: Props) {
return (
<>
{isOpen && <div className="z-[100000111]">
{isOpen &&
<LightboxComponent
wrapperClassName='fixed z-[10000022]'
mainSrc={props.images[photoIndex]}
nextSrc={props.images[(photoIndex + 1) % props.images.length]}
prevSrc={props.images[(photoIndex + props.images.length - 1) % props.images.length]}
@@ -45,8 +44,7 @@ export default function Lightbox(props: Props) {
setPhotoIndex((photoIndex + 1) % props.images.length)
}
imagePadding={48}
/>
</div>}
/>}
</>
)
}