|
|
@ -13,14 +13,14 @@ const Grid: FC<GridProps> = ({ |
|
|
|
return items.map(([itemId, itemGridProps], index) => { |
|
|
|
return items.map(([itemId, itemGridProps], index) => { |
|
|
|
const key = itemId; |
|
|
|
const key = itemId; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return itemGridProps ? ( |
|
|
|
<MUIGrid |
|
|
|
<MUIGrid |
|
|
|
{...calculateItemBreakpoints(index, key)} |
|
|
|
{...calculateItemBreakpoints(index, key)} |
|
|
|
key={key} |
|
|
|
key={key} |
|
|
|
item |
|
|
|
item |
|
|
|
{...itemGridProps} |
|
|
|
{...itemGridProps} |
|
|
|
/> |
|
|
|
/> |
|
|
|
); |
|
|
|
) : undefined; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, [calculateItemBreakpoints, layout]); |
|
|
|
}, [calculateItemBreakpoints, layout]); |
|
|
|
|
|
|
|
|
|
|
|