@citygross/components 0.8.13 → 0.8.14

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.
@@ -26,6 +26,7 @@ var CartSubTotal = function (_a) {
26
26
  var toggleInfoOpen = function () {
27
27
  setInfoOpen(!infoOpen);
28
28
  };
29
+ console.log('formattedPrice', formattedPrice);
29
30
  return info !== undefined ? (React__default["default"].createElement(CartSubTotal_styles.CartSubTotalContainer, { type: type },
30
31
  React__default["default"].createElement(CartSubTotal_styles.SubTotalLabel, null,
31
32
  label,
@@ -34,16 +35,19 @@ var CartSubTotal = function (_a) {
34
35
  React__default["default"].createElement(icons.Icons.Info, { height: 16, width: 16 }))),
35
36
  React__default["default"].createElement(CartSubTotal_styles.Price, { priceColor: priceColor }, (value !== 0 && !value) || isNaN(value)
36
37
  ? '-'
37
- : "".concat(fromPriceLabel || '', " ").concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.value, ",").concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal, " kr")),
38
+ : "".concat(fromPriceLabel || '', " ").concat("".concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.value).concat((formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal) !== '00'
39
+ ? ",".concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal)
40
+ : ''), " kr")),
38
41
  infoOpen && (React__default["default"].createElement(ToolTipDialog.ToolTipDialog, { onBottom: infoOnBottom, info: info, toggle: toggleInfoOpen })))) : (React__default["default"].createElement(CartSubTotal_styles.CartSubTotalContainer, { type: type },
39
42
  React__default["default"].createElement(CartSubTotal_styles.SubTotalLabel, null,
40
43
  label,
41
44
  children),
42
45
  value !== undefined ? (React__default["default"].createElement(CartSubTotal_styles.Price, { priceColor: priceColor }, formattedPrice === null || formattedPrice === void 0 ? void 0 :
43
- formattedPrice.value,
44
- ",", formattedPrice === null || formattedPrice === void 0 ? void 0 :
45
- formattedPrice.decimal,
46
- " kr")) : null));
46
+ formattedPrice.value, "".concat((formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal) !== '00'
47
+ ? ",".concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal)
48
+ : ''),
49
+ ' ',
50
+ "kr")) : null));
47
51
  };
48
52
 
49
53
  exports.CartSubTotal = CartSubTotal;
@@ -1 +1 @@
1
- {"version":3,"file":"CartSubTotal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CartSubTotal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -18,6 +18,7 @@ var CartSubTotal = function (_a) {
18
18
  var toggleInfoOpen = function () {
19
19
  setInfoOpen(!infoOpen);
20
20
  };
21
+ console.log('formattedPrice', formattedPrice);
21
22
  return info !== undefined ? (React.createElement(CartSubTotalContainer, { type: type },
22
23
  React.createElement(SubTotalLabel, null,
23
24
  label,
@@ -26,16 +27,19 @@ var CartSubTotal = function (_a) {
26
27
  React.createElement(Icons.Info, { height: 16, width: 16 }))),
27
28
  React.createElement(Price, { priceColor: priceColor }, (value !== 0 && !value) || isNaN(value)
28
29
  ? '-'
29
- : "".concat(fromPriceLabel || '', " ").concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.value, ",").concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal, " kr")),
30
+ : "".concat(fromPriceLabel || '', " ").concat("".concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.value).concat((formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal) !== '00'
31
+ ? ",".concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal)
32
+ : ''), " kr")),
30
33
  infoOpen && (React.createElement(ToolTipDialog, { onBottom: infoOnBottom, info: info, toggle: toggleInfoOpen })))) : (React.createElement(CartSubTotalContainer, { type: type },
31
34
  React.createElement(SubTotalLabel, null,
32
35
  label,
33
36
  children),
34
37
  value !== undefined ? (React.createElement(Price, { priceColor: priceColor }, formattedPrice === null || formattedPrice === void 0 ? void 0 :
35
- formattedPrice.value,
36
- ",", formattedPrice === null || formattedPrice === void 0 ? void 0 :
37
- formattedPrice.decimal,
38
- " kr")) : null));
38
+ formattedPrice.value, "".concat((formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal) !== '00'
39
+ ? ",".concat(formattedPrice === null || formattedPrice === void 0 ? void 0 : formattedPrice.decimal)
40
+ : ''),
41
+ ' ',
42
+ "kr")) : null));
39
43
  };
40
44
 
41
45
  export { CartSubTotal, ECartSubTotalTypes };
@@ -1 +1 @@
1
- {"version":3,"file":"CartSubTotal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CartSubTotal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.8.13",
3
+ "version": "0.8.14",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -76,5 +76,5 @@
76
76
  "react-slick": "^0.30.1",
77
77
  "slick-carousel": "^1.8.1"
78
78
  },
79
- "gitHead": "c875e9e5b0dba0ea7150c3c561dbce9ad02f8ba2"
79
+ "gitHead": "f692095612e3e551efe96df089e16f85913eff47"
80
80
  }