diy-template-components 0.2.82 → 0.2.83
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.
- package/build/index.es.js +4 -4
- package/build/index.es.js.map +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -7177,14 +7177,14 @@ const SingleVideoSlide$1 = props => {
|
|
|
7177
7177
|
completed
|
|
7178
7178
|
}) => {
|
|
7179
7179
|
if (days === 0 && hours < 24) {
|
|
7180
|
-
if (countryCode === '
|
|
7180
|
+
if (countryCode === 'KR') {
|
|
7181
7181
|
return /*#__PURE__*/React.createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
7182
7182
|
}
|
|
7183
7183
|
return /*#__PURE__*/React.createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
7184
7184
|
} else {
|
|
7185
7185
|
let given = moment(props.data.offerPriceEndDate);
|
|
7186
7186
|
let current = moment().startOf('day');
|
|
7187
|
-
return /*#__PURE__*/React.createElement("span", null, Math.floor(moment.duration(given.diff(current)).asDays()), ' ', countryCode === '
|
|
7187
|
+
return /*#__PURE__*/React.createElement("span", null, Math.floor(moment.duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '날' : 'day(s)');
|
|
7188
7188
|
}
|
|
7189
7189
|
};
|
|
7190
7190
|
const checkIfOfferIsValid = () => moment().diff(moment(props.data.offerPriceEndDate)) < 0;
|
|
@@ -7695,14 +7695,14 @@ const SingleVideoSlide = props => {
|
|
|
7695
7695
|
completed
|
|
7696
7696
|
}) => {
|
|
7697
7697
|
if (days === 0 && hours < 24) {
|
|
7698
|
-
if (countryCode === '
|
|
7698
|
+
if (countryCode === 'KR') {
|
|
7699
7699
|
return /*#__PURE__*/React.createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
7700
7700
|
}
|
|
7701
7701
|
return /*#__PURE__*/React.createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
7702
7702
|
} else {
|
|
7703
7703
|
let given = moment(props.data.endDate);
|
|
7704
7704
|
let current = moment().startOf('day');
|
|
7705
|
-
return /*#__PURE__*/React.createElement("span", null, Math.floor(moment.duration(given.diff(current)).asDays()), ' ', countryCode === '
|
|
7705
|
+
return /*#__PURE__*/React.createElement("span", null, Math.floor(moment.duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '날' : 'day(s)');
|
|
7706
7706
|
}
|
|
7707
7707
|
};
|
|
7708
7708
|
const {
|