oa-componentbook 0.18.342 → 0.18.343

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.
@@ -1486,6 +1486,7 @@ function GenricLayOut(_ref) {
1486
1486
  */
1487
1487
  const updateStateData = (selectedOption, key, action) => {
1488
1488
  if (action === "changeBillingAddress") {
1489
+ console.log(selectedOption, key, action, "data");
1489
1490
  dispatch({
1490
1491
  type: _layoutReducer.actionTypes.SET_CUSTOM_DRAWER_DATA_SELECT,
1491
1492
  payload: {
@@ -39,7 +39,7 @@ const actionTypes = exports.actionTypes = {
39
39
  // Use to show hide the modal
40
40
  SET_MODAL: "SET_MODAL",
41
41
  SET_TABLE_FILTER: "SET_TABLE_FILTER",
42
- SET_CUSTOM_DRAWER_DATA_SELECT: "SET_CUSTOM_DRAWER_DATA",
42
+ SET_CUSTOM_DRAWER_DATA_SELECT: "SET_CUSTOM_DRAWER_DATA_SELECT",
43
43
  SET_SUBHEADING_SELECTED_CONFIG: "SET_SUBHEADING_SELECTED_CONFIG",
44
44
  SET_FILTER_DRAWER: "SET_FILTER_DRAWER",
45
45
  FILTER_DRAWER_OPEN: "FILTER_DRAWER_OPEN",
@@ -174,7 +174,7 @@ const genericLayoutReducer = exports.genericLayoutReducer = (0, _immer.produce)(
174
174
  break;
175
175
  case actionTypes.SET_CUSTOM_DRAWER_DATA_SELECT:
176
176
  const record = _objectSpread({}, draft === null || draft === void 0 || (_draft$drawer = draft.drawer) === null || _draft$drawer === void 0 || (_draft$drawer = _draft$drawer.data) === null || _draft$drawer === void 0 || (_draft$drawer = _draft$drawer[(_draft$tabs$active2 = draft === null || draft === void 0 || (_draft$tabs3 = draft.tabs) === null || _draft$tabs3 === void 0 ? void 0 : _draft$tabs3.active) !== null && _draft$tabs$active2 !== void 0 ? _draft$tabs$active2 : "default"]) === null || _draft$drawer === void 0 ? void 0 : _draft$drawer[action.payload.key]);
177
- record.groups[3].items[1].value["Billing Address"] = action.payload.value;
177
+ record.groups[4].items[1].value["Billing Address"] = action.payload.value;
178
178
  break;
179
179
  case actionTypes.SET_SUBHEADING_SELECTED_CONFIG:
180
180
  draft.header.subHeading.jsxConfig.value = action.payload;
@@ -250,10 +250,7 @@ function FormWidget(props) {
250
250
  style: {
251
251
  color: _ColorVariablesMap.default["--color-positive"]
252
252
  }
253
- }, "\u20B9", item.value), (item === null || item === void 0 ? void 0 : item.subText) && /*#__PURE__*/_react.default.createElement(_Typography.default, {
254
- typography: "type-button-500",
255
- color: "secondary-content"
256
- }, item.subText));
253
+ }, "\u20B9", item.value));
257
254
  case "keyValue":
258
255
  return /*#__PURE__*/_react.default.createElement(_KeyValueWidget.default, {
259
256
  key: item.key,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "0.18.342",
3
+ "version": "0.18.343",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",