umwd-components 0.1.151 → 0.1.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,7 +41,7 @@ function PictureBarSection(_ref) {
|
|
|
41
41
|
direction: "row",
|
|
42
42
|
spacing: 2,
|
|
43
43
|
justifyContent: "space-around"
|
|
44
|
-
}, pictures.map(picture => /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
|
|
44
|
+
}, pictures.data && pictures.data.map(picture => /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
|
|
45
45
|
src: picture.url,
|
|
46
46
|
alt: picture.alternativeText,
|
|
47
47
|
width: 200,
|
|
@@ -39,7 +39,7 @@ function PictureBarSection(_ref) {
|
|
|
39
39
|
direction: "row",
|
|
40
40
|
spacing: 2,
|
|
41
41
|
justifyContent: "space-around"
|
|
42
|
-
}, pictures.map(picture => /*#__PURE__*/React__default.createElement(StrapiImage, {
|
|
42
|
+
}, pictures.data && pictures.data.map(picture => /*#__PURE__*/React__default.createElement(StrapiImage, {
|
|
43
43
|
src: picture.url,
|
|
44
44
|
alt: picture.alternativeText,
|
|
45
45
|
width: 200,
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ interface PictureBarSectionProps {
|
|
|
34
34
|
__component: string;
|
|
35
35
|
title: string;
|
|
36
36
|
description: string;
|
|
37
|
-
pictures: ImageProps[];
|
|
37
|
+
pictures: { data: ImageProps[] };
|
|
38
38
|
maxWidth: MaxWidth;
|
|
39
39
|
sx?: SxProps<Theme>;
|
|
40
40
|
}
|
|
@@ -58,17 +58,18 @@ export function PictureBarSection({
|
|
|
58
58
|
spacing={2}
|
|
59
59
|
justifyContent={"space-around"}
|
|
60
60
|
>
|
|
61
|
-
{pictures.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
{pictures.data &&
|
|
62
|
+
pictures.data.map((picture) => (
|
|
63
|
+
<StrapiImage
|
|
64
|
+
src={picture.url}
|
|
65
|
+
alt={picture.alternativeText}
|
|
66
|
+
width={200}
|
|
67
|
+
height={200}
|
|
68
|
+
style={{
|
|
69
|
+
...picture.style,
|
|
70
|
+
}}
|
|
71
|
+
/>
|
|
72
|
+
))}
|
|
72
73
|
</Stack>
|
|
73
74
|
</Paper>
|
|
74
75
|
</Grid>
|