umwd-components 0.1.210 → 0.1.211
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.
|
@@ -80,7 +80,7 @@ function HeroSection(_ref) {
|
|
|
80
80
|
spacing: 5,
|
|
81
81
|
alignItems: "center",
|
|
82
82
|
justifyContent: "center"
|
|
83
|
-
}, logoImage && logoImage.url && /*#__PURE__*/React.createElement(material.Box, {
|
|
83
|
+
}, logoImage && logoImage.url !== null && /*#__PURE__*/React.createElement(material.Box, {
|
|
84
84
|
className: "manipulator"
|
|
85
85
|
}, /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
|
|
86
86
|
id: (_logoImage$id = logoImage.id) === null || _logoImage$id === void 0 ? void 0 : _logoImage$id.toString(),
|
|
@@ -108,7 +108,7 @@ function HeroSection(_ref) {
|
|
|
108
108
|
variant: "h4",
|
|
109
109
|
align: "center",
|
|
110
110
|
component: "h2"
|
|
111
|
-
}, subHeading), /*#__PURE__*/React.createElement(Link, {
|
|
111
|
+
}, subHeading), link && link.url && /*#__PURE__*/React.createElement(Link, {
|
|
112
112
|
href: link.url
|
|
113
113
|
}, /*#__PURE__*/React.createElement(material.Button, {
|
|
114
114
|
variant: "contained",
|
|
@@ -78,7 +78,7 @@ function HeroSection(_ref) {
|
|
|
78
78
|
spacing: 5,
|
|
79
79
|
alignItems: "center",
|
|
80
80
|
justifyContent: "center"
|
|
81
|
-
}, logoImage && logoImage.url && /*#__PURE__*/React__default.createElement(Box, {
|
|
81
|
+
}, logoImage && logoImage.url !== null && /*#__PURE__*/React__default.createElement(Box, {
|
|
82
82
|
className: "manipulator"
|
|
83
83
|
}, /*#__PURE__*/React__default.createElement(StrapiImage, {
|
|
84
84
|
id: (_logoImage$id = logoImage.id) === null || _logoImage$id === void 0 ? void 0 : _logoImage$id.toString(),
|
|
@@ -106,7 +106,7 @@ function HeroSection(_ref) {
|
|
|
106
106
|
variant: "h4",
|
|
107
107
|
align: "center",
|
|
108
108
|
component: "h2"
|
|
109
|
-
}, subHeading), /*#__PURE__*/React__default.createElement(Link, {
|
|
109
|
+
}, subHeading), link && link.url && /*#__PURE__*/React__default.createElement(Link, {
|
|
110
110
|
href: link.url
|
|
111
111
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
112
112
|
variant: "contained",
|
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
|
|
|
97
97
|
}}
|
|
98
98
|
>
|
|
99
99
|
<Stack spacing={5} alignItems="center" justifyContent="center">
|
|
100
|
-
{logoImage && logoImage.url && (
|
|
100
|
+
{logoImage && logoImage.url !== null && (
|
|
101
101
|
<Box className="manipulator">
|
|
102
102
|
<StrapiImage
|
|
103
103
|
id={logoImage.id?.toString()}
|
|
@@ -128,14 +128,16 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
|
|
|
128
128
|
<Typography variant="h4" align="center" component={"h2"}>
|
|
129
129
|
{subHeading}
|
|
130
130
|
</Typography>
|
|
131
|
-
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
{link && link.url && (
|
|
132
|
+
<Link href={link.url}>
|
|
133
|
+
<Button
|
|
134
|
+
variant="contained"
|
|
135
|
+
sx={{ width: "100%", fontSize: "1.5rem" }}
|
|
136
|
+
>
|
|
137
|
+
{link.text}
|
|
138
|
+
</Button>
|
|
139
|
+
</Link>
|
|
140
|
+
)}
|
|
139
141
|
</Stack>
|
|
140
142
|
</Paper>
|
|
141
143
|
</Container>
|