umwd-components 0.1.210 → 0.1.212

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.
@@ -71,7 +71,7 @@ function Footer(_ref) {
71
71
  //console.log(logo.url);
72
72
 
73
73
  return /*#__PURE__*/React.createElement(material.AppBar, {
74
- position: "absolute",
74
+ position: "relative",
75
75
  sx: {
76
76
  backgroundColor: theme.palette.mode === "light" ? theme.palette.primary.light : theme.palette.primary.dark,
77
77
  top: "auto",
@@ -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",
@@ -67,7 +67,7 @@ function Footer(_ref) {
67
67
  //console.log(logo.url);
68
68
 
69
69
  return /*#__PURE__*/React__default.createElement(AppBar, {
70
- position: "absolute",
70
+ position: "relative",
71
71
  sx: {
72
72
  backgroundColor: theme.palette.mode === "light" ? theme.palette.primary.light : theme.palette.primary.dark,
73
73
  top: "auto",
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.210",
3
+ "version": "0.1.212",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -113,7 +113,7 @@ function Footer({ data }: { readonly data: FooterProps }) {
113
113
 
114
114
  return (
115
115
  <AppBar
116
- position="absolute"
116
+ position="relative"
117
117
  sx={{
118
118
  backgroundColor:
119
119
  theme.palette.mode === "light"
@@ -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
- <Link href={link.url}>
132
- <Button
133
- variant="contained"
134
- sx={{ width: "100%", fontSize: "1.5rem" }}
135
- >
136
- {link.text}
137
- </Button>
138
- </Link>
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>