contentoh-components-library 21.4.11 → 21.4.12

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.
@@ -54,6 +54,9 @@ var GridItem = function GridItem(_ref) {
54
54
 
55
55
  case "images":
56
56
  return "IMG";
57
+
58
+ default:
59
+ return "S.G.";
57
60
  }
58
61
  };
59
62
 
@@ -98,7 +101,7 @@ var GridItem = function GridItem(_ref) {
98
101
  })
99
102
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Status.Status, {
100
103
  statusType: item.value
101
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PercentTag.PercentTag, {
104
+ }), (item === null || item === void 0 ? void 0 : item.percent) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PercentTag.PercentTag, {
102
105
  percent: item.percent,
103
106
  progressBarType: item.value
104
107
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.4.11",
3
+ "version": "21.4.12",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -28,6 +28,8 @@ export const GridItem = ({
28
28
  return "D.C.";
29
29
  case "images":
30
30
  return "IMG";
31
+ default:
32
+ return "S.G.";
31
33
  }
32
34
  };
33
35
 
@@ -55,7 +57,9 @@ export const GridItem = ({
55
57
  <p>{getSrvName(item.title)}</p>
56
58
  </div>
57
59
  <Status statusType={item.value} />
58
- <PercentTag percent={item.percent} progressBarType={item.value} />
60
+ {item?.percent && (
61
+ <PercentTag percent={item.percent} progressBarType={item.value} />
62
+ )}
59
63
  </div>
60
64
  ))}
61
65
  </div>