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:
@@ -21,6 +21,7 @@ export default function FullView({
|
||||
onPrev,
|
||||
currentIndex,
|
||||
totalImages,
|
||||
hideLabel,
|
||||
}: FullViewProps) {
|
||||
const [animateLeft, setAnimateLeft] = useState(true)
|
||||
|
||||
@@ -97,7 +98,9 @@ export default function FullView({
|
||||
/>
|
||||
|
||||
<div className={styles.fullViewFooter}>
|
||||
{image.caption && <Body color="white">{image.caption}</Body>}
|
||||
{image.caption && !hideLabel && (
|
||||
<Body color="white">{image.caption}</Body>
|
||||
)}
|
||||
</div>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
|
||||
Reference in New Issue
Block a user