contentoh-components-library 21.1.76 → 21.1.77

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.
@@ -13,7 +13,7 @@ var Status = function Status(_ref) {
13
13
  var statusType = _ref.statusType,
14
14
  ovalForm = _ref.ovalForm;
15
15
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
16
- className: "status-".concat(statusType, " ").concat(ovalForm && "oval-form"),
16
+ className: "status-".concat(statusType.replace(/\/.*/, ""), " ").concat(ovalForm && "oval-form"),
17
17
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
18
18
  children: statusType
19
19
  })
@@ -1765,7 +1765,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1765
1765
  }
1766
1766
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
1767
1767
  tabsSections: tabsSections,
1768
- status: activeRetailer.id ? retailerStatus[activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id][getConcept(activeTab)] || "NS" : "-",
1768
+ status: activeRetailer.id && retailerStatus ? retailerStatus[activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id][getConcept(activeTab)] || "NS" : "-",
1769
1769
  activeTab: activeTab,
1770
1770
  setActiveTab: setActiveTab,
1771
1771
  setImageLayout: setImageLayout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.76",
3
+ "version": "21.1.77",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -2,7 +2,11 @@ import { Container } from "./styles";
2
2
 
3
3
  export const Status = ({ statusType, ovalForm }) => {
4
4
  return (
5
- <Container className={`status-${statusType} ${ovalForm && "oval-form"}`}>
5
+ <Container
6
+ className={`status-${statusType.replace(/\/.*/, "")} ${
7
+ ovalForm && "oval-form"
8
+ }`}
9
+ >
6
10
  <p>{statusType}</p>
7
11
  </Container>
8
12
  );
@@ -1170,7 +1170,7 @@ export const ProviderProductEdition = ({
1170
1170
  <FullTabsMenu
1171
1171
  tabsSections={tabsSections}
1172
1172
  status={
1173
- activeRetailer.id
1173
+ activeRetailer.id && retailerStatus
1174
1174
  ? retailerStatus[activeRetailer?.id][getConcept(activeTab)] ||
1175
1175
  "NS"
1176
1176
  : "-"