contentoh-components-library 21.3.10 → 21.3.11

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.
@@ -69,7 +69,8 @@ ProviderProductEditionDefault.args = {
69
69
  },
70
70
  location: {
71
71
  state: {
72
- origin: "Contentoh"
72
+ origin: "Contentoh",
73
+ withChat: true
73
74
  }
74
75
  },
75
76
  user: {
@@ -134,6 +135,5 @@ ProviderProductEditionDefault.args = {
134
135
  },
135
136
  showSurvey: function showSurvey(v) {
136
137
  return v && alert("se muestra");
137
- },
138
- withChat: true
138
+ }
139
139
  };
@@ -212,7 +212,7 @@ var myBucket = new _awsSdk.default.S3({
212
212
  });
213
213
 
214
214
  var ProviderProductEdition = function ProviderProductEdition(_ref) {
215
- var _product$retailers, _product$retailersAva, _location$state, _datasheets$, _datasheets$$data;
215
+ var _product$retailers, _product$retailersAva, _location$state, _location$state2, _datasheets$, _datasheets$$data;
216
216
 
217
217
  var tabsSections = _ref.tabsSections,
218
218
  _ref$productSelected = _ref.productSelected,
@@ -1682,7 +1682,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1682
1682
  headerTop: headerTop,
1683
1683
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderTop.HeaderTop, {
1684
1684
  setHeaderTop: setHeaderTop,
1685
- withChat: withChat,
1685
+ withChat: location === null || location === void 0 ? void 0 : (_location$state2 = location.state) === null || _location$state2 === void 0 ? void 0 : _location$state2.withChat,
1686
1686
  productSelected: productSelected,
1687
1687
  token: token
1688
1688
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.3.10",
3
+ "version": "21.3.11",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -59,7 +59,7 @@ ProviderProductEditionDefault.args = {
59
59
  ],
60
60
  },
61
61
  location: {
62
- state: { origin: "Contentoh" },
62
+ state: { origin: "Contentoh", withChat: true },
63
63
  },
64
64
  user: {
65
65
  id_user: 140,
@@ -126,5 +126,4 @@ ProviderProductEditionDefault.args = {
126
126
  ],
127
127
  },
128
128
  showSurvey: (v) => v && alert("se muestra"),
129
- withChat: true,
130
129
  };
@@ -1062,7 +1062,7 @@ export const ProviderProductEdition = ({
1062
1062
  <Container headerTop={headerTop}>
1063
1063
  <HeaderTop
1064
1064
  setHeaderTop={setHeaderTop}
1065
- withChat={withChat}
1065
+ withChat={location?.state?.withChat}
1066
1066
  productSelected={productSelected}
1067
1067
  token={token}
1068
1068
  />