diy-template-components 2.0.51 → 2.0.53
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 -8
- package/build/index.es.js.map +1 -1
- package/build/index.js +4 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1089,8 +1089,8 @@ function OptionList({
|
|
|
1089
1089
|
isPreview,
|
|
1090
1090
|
countryCode
|
|
1091
1091
|
} = React.useContext(PageContext);
|
|
1092
|
-
function checkIsActiveTab(slug =
|
|
1093
|
-
if (typeof window !==
|
|
1092
|
+
function checkIsActiveTab(slug = '') {
|
|
1093
|
+
if (typeof window !== 'undefined') {
|
|
1094
1094
|
const pathname = window.location.pathname;
|
|
1095
1095
|
const slugFromPathname = pathname?.split('/')[1];
|
|
1096
1096
|
if (slug && slugFromPathname.includes(slug)) {
|
|
@@ -8465,21 +8465,17 @@ const SingleVideoSlide = props => {
|
|
|
8465
8465
|
isEdit
|
|
8466
8466
|
} = React.useContext(PageContext);
|
|
8467
8467
|
const renderer = ({
|
|
8468
|
-
days,
|
|
8469
8468
|
hours,
|
|
8470
8469
|
minutes,
|
|
8471
8470
|
seconds,
|
|
8472
8471
|
completed
|
|
8473
8472
|
}) => {
|
|
8474
|
-
|
|
8473
|
+
console.log("siddharth", hours, minutes);
|
|
8474
|
+
{
|
|
8475
8475
|
if (countryCode === 'KR') {
|
|
8476
8476
|
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
8477
8477
|
}
|
|
8478
8478
|
return /*#__PURE__*/React__default["default"].createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
8479
|
-
} else {
|
|
8480
|
-
let given = moment__default["default"](props.data.endDate);
|
|
8481
|
-
let current = moment__default["default"]().startOf('day');
|
|
8482
|
-
return /*#__PURE__*/React__default["default"].createElement("span", null, Math.floor(moment__default["default"].duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '일' : 'day(s)');
|
|
8483
8479
|
}
|
|
8484
8480
|
};
|
|
8485
8481
|
const {
|