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.es.js
CHANGED
|
@@ -1073,8 +1073,8 @@ function OptionList({
|
|
|
1073
1073
|
isPreview,
|
|
1074
1074
|
countryCode
|
|
1075
1075
|
} = useContext(PageContext);
|
|
1076
|
-
function checkIsActiveTab(slug =
|
|
1077
|
-
if (typeof window !==
|
|
1076
|
+
function checkIsActiveTab(slug = '') {
|
|
1077
|
+
if (typeof window !== 'undefined') {
|
|
1078
1078
|
const pathname = window.location.pathname;
|
|
1079
1079
|
const slugFromPathname = pathname?.split('/')[1];
|
|
1080
1080
|
if (slug && slugFromPathname.includes(slug)) {
|
|
@@ -8449,21 +8449,17 @@ const SingleVideoSlide = props => {
|
|
|
8449
8449
|
isEdit
|
|
8450
8450
|
} = useContext(PageContext);
|
|
8451
8451
|
const renderer = ({
|
|
8452
|
-
days,
|
|
8453
8452
|
hours,
|
|
8454
8453
|
minutes,
|
|
8455
8454
|
seconds,
|
|
8456
8455
|
completed
|
|
8457
8456
|
}) => {
|
|
8458
|
-
|
|
8457
|
+
console.log("siddharth", hours, minutes);
|
|
8458
|
+
{
|
|
8459
8459
|
if (countryCode === 'KR') {
|
|
8460
8460
|
return /*#__PURE__*/React.createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
8461
8461
|
}
|
|
8462
8462
|
return /*#__PURE__*/React.createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
8463
|
-
} else {
|
|
8464
|
-
let given = moment(props.data.endDate);
|
|
8465
|
-
let current = moment().startOf('day');
|
|
8466
|
-
return /*#__PURE__*/React.createElement("span", null, Math.floor(moment.duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '일' : 'day(s)');
|
|
8467
8463
|
}
|
|
8468
8464
|
};
|
|
8469
8465
|
const {
|