fix(SW-302): show max. 2 images per grid
This commit is contained in:
@@ -86,7 +86,8 @@ export async function setFacilityCards(
|
|||||||
const grid: Array<CardProps> = []
|
const grid: Array<CardProps> = []
|
||||||
let card: CardProps = {}
|
let card: CardProps = {}
|
||||||
|
|
||||||
facility.heroImages.forEach((image) => {
|
facility.heroImages.slice(0, 2).forEach((image) => {
|
||||||
|
// Can be a maximum 2 images per grid
|
||||||
const img: CardProps = {}
|
const img: CardProps = {}
|
||||||
;(img.backgroundImage = {
|
;(img.backgroundImage = {
|
||||||
url: image.imageSizes.large,
|
url: image.imageSizes.large,
|
||||||
|
|||||||
Reference in New Issue
Block a user