refactor(SW-337): conditional rendering of image titles
This commit is contained in:
@@ -58,7 +58,9 @@ export default function Gallery({
|
||||
<div className={styles.galleryHeader}>
|
||||
<DialogTitle asChild>
|
||||
<div className={styles.imageCaption}>
|
||||
<Caption color="textMediumContrast">{mainImage.title}</Caption>
|
||||
{mainImage.title && (
|
||||
<Caption color="textMediumContrast">{mainImage.title}</Caption>
|
||||
)}
|
||||
</div>
|
||||
</DialogTitle>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user