Merged in fix/SW-1955-image-gallery-hide-room-label (pull request #1621)
fix(SW-1955): hide label on room sidepeek * fix(SW-1955): hide label on room sidepeek Approved-by: Erik Tiekstra
This commit is contained in:
@@ -20,6 +20,7 @@ export default function Gallery({
|
||||
onSelectImage,
|
||||
onImageClick,
|
||||
selectedImage,
|
||||
hideLabel,
|
||||
}: GalleryProps) {
|
||||
const intl = useIntl()
|
||||
const [animateLeft, setAnimateLeft] = useState(true)
|
||||
@@ -79,7 +80,7 @@ export default function Gallery({
|
||||
{/* Desktop Gallery */}
|
||||
<div className={styles.desktopGallery}>
|
||||
<div className={styles.galleryHeader}>
|
||||
{mainImage.caption && (
|
||||
{mainImage.caption && !hideLabel && (
|
||||
<div className={styles.imageCaption}>
|
||||
<Caption color="textMediumContrast">{mainImage.caption}</Caption>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user