Merged in feat/SW-2500-sync-hotel-images- (pull request #2504)
feat: SW-2500 Updated the default image as placeholder when missing * feat: SW-2500 Updated the default image as placeholder when missing * feat: SW-2500 Updated to new tokens Approved-by: Matilda Landström
This commit is contained in:
@@ -29,7 +29,11 @@ function ImageGallery({
|
||||
const imageProps = fill ? { fill, sizes } : { height, width: height * 1.5 }
|
||||
|
||||
if (!images || images.length === 0 || imageError) {
|
||||
return <div className={styles.imagePlaceholder} />
|
||||
return (
|
||||
<div className={styles.imagePlaceholder}>
|
||||
<MaterialIcon icon="imagesmode" size={32} color="CurrentColor" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const firstImage = images[0]
|
||||
|
||||
Reference in New Issue
Block a user