Merged in fix/hotel-rooms (pull request #1288)
fix: Rooms images on hotel pages * fix: Rooms images on hotel pages Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
This commit is contained in:
@@ -18,11 +18,12 @@ function ImageGallery({
|
||||
title,
|
||||
fill,
|
||||
height = 280,
|
||||
sizes,
|
||||
}: ImageGalleryProps) {
|
||||
const intl = useIntl()
|
||||
const [lightboxIsOpen, setLightboxIsOpen] = useState(false)
|
||||
const [imageError, setImageError] = useState(false)
|
||||
const imageProps = fill ? { fill } : { height, width: height * 1.5 }
|
||||
const imageProps = fill ? { fill, sizes } : { height, width: height * 1.5 }
|
||||
|
||||
if (!images || images.length === 0 || imageError) {
|
||||
return <div className={styles.imagePlaceholder} />
|
||||
|
||||
Reference in New Issue
Block a user