@pisell/materials 6.6.23 → 6.6.25

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.
@@ -9,6 +9,7 @@ interface ApplicableProductDetails {
9
9
  }
10
10
  interface Discount {
11
11
  id: number;
12
+ displayKey?: string;
12
13
  product_name: string;
13
14
  encoded: string;
14
15
  code: string;
@@ -65,8 +65,9 @@ var index = function index(props) {
65
65
  }, renderVoucherContent(item));
66
66
  };
67
67
  var renderVoucherItem = function renderVoucherItem(item) {
68
+ var _item$displayKey;
68
69
  return /*#__PURE__*/React.createElement("div", {
69
- key: item.id,
70
+ key: (_item$displayKey = item.displayKey) !== null && _item$displayKey !== void 0 ? _item$displayKey : item.id,
70
71
  className: "".concat(clsPrefix, "-voucher-item")
71
72
  }, /*#__PURE__*/React.createElement("div", {
72
73
  className: "item-title"
@@ -9,6 +9,7 @@ interface ApplicableProductDetails {
9
9
  }
10
10
  interface Discount {
11
11
  id: number;
12
+ displayKey?: string;
12
13
  product_name: string;
13
14
  encoded: string;
14
15
  code: string;
@@ -74,7 +74,7 @@ var index = (props) => {
74
74
  );
75
75
  };
76
76
  const renderVoucherItem = (item) => {
77
- return /* @__PURE__ */ import_react.default.createElement("div", { key: item.id, className: `${clsPrefix}-voucher-item` }, /* @__PURE__ */ import_react.default.createElement("div", { className: "item-title" }, translation(item.format_title), item.isEditMode && (0, import_locales.getText)("pisell2.text.goodpass.last-settlement")), /* @__PURE__ */ import_react.default.createElement("div", { className: "item-content" }, renderActionElement(item)));
77
+ return /* @__PURE__ */ import_react.default.createElement("div", { key: item.displayKey ?? item.id, className: `${clsPrefix}-voucher-item` }, /* @__PURE__ */ import_react.default.createElement("div", { className: "item-title" }, translation(item.format_title), item.isEditMode && (0, import_locales.getText)("pisell2.text.goodpass.last-settlement")), /* @__PURE__ */ import_react.default.createElement("div", { className: "item-content" }, renderActionElement(item)));
78
78
  };
79
79
  const renderModal = () => {
80
80
  return /* @__PURE__ */ import_react.default.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.6.23",
3
+ "version": "6.6.25",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",