pcm-shared-components 2.0.2 → 2.0.3
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.
|
@@ -177,14 +177,10 @@ export const ProductItemButton = props => {
|
|
|
177
177
|
}, sub_title));
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
const toFloat_2_decimal =
|
|
180
|
+
const toFloat_2_decimal = value => {
|
|
181
181
|
try {
|
|
182
182
|
if (value) {
|
|
183
183
|
value = parseFloat(Math.round(value * 100) / 100).toFixed(2);
|
|
184
|
-
|
|
185
|
-
if (with_thousand_separators) {
|
|
186
|
-
value = thousandsSeparators(value);
|
|
187
|
-
}
|
|
188
184
|
}
|
|
189
185
|
} catch (e) {
|
|
190
186
|
console.error(e.message);
|
|
@@ -193,14 +189,10 @@ export const ProductItemButton = props => {
|
|
|
193
189
|
return value;
|
|
194
190
|
};
|
|
195
191
|
|
|
196
|
-
const toFloat_0_decimal =
|
|
192
|
+
const toFloat_0_decimal = value => {
|
|
197
193
|
try {
|
|
198
194
|
if (value) {
|
|
199
195
|
value = parseFloat(Math.round(value * 100) / 100).toFixed(0);
|
|
200
|
-
|
|
201
|
-
if (with_thousand_separators) {
|
|
202
|
-
value = thousandsSeparators(value);
|
|
203
|
-
}
|
|
204
196
|
}
|
|
205
197
|
} catch (e) {
|
|
206
198
|
console.error(e.message);
|
|
@@ -238,7 +230,7 @@ export const ProductItemButton = props => {
|
|
|
238
230
|
title: productData.description,
|
|
239
231
|
arrow: true
|
|
240
232
|
}, /*#__PURE__*/React.createElement(InfoIcon, {
|
|
241
|
-
fontSize: "
|
|
233
|
+
fontSize: "normal"
|
|
242
234
|
})))), productData.pictures && productData.pictures.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
243
235
|
className: "absolute left-0 -ml-10 z-99",
|
|
244
236
|
style: {
|