diy-template-components 2.0.53 → 2.0.54
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 +9 -4
- package/build/index.es.js.map +1 -1
- package/build/index.js +9 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -2308,7 +2308,8 @@ const generateTheme = (theme = 'blue', fontFamily = 'Arial', isMobile) => {
|
|
|
2308
2308
|
gradient = themeColor[1];
|
|
2309
2309
|
darkMode = themeColor[2];
|
|
2310
2310
|
}
|
|
2311
|
-
|
|
2311
|
+
|
|
2312
|
+
// console.log('color', allColors, gradient, darkMode);
|
|
2312
2313
|
|
|
2313
2314
|
// switch (color) {
|
|
2314
2315
|
// case solidColors:
|
|
@@ -8140,7 +8141,7 @@ var index$5 = /*#__PURE__*/Object.freeze({
|
|
|
8140
8141
|
});
|
|
8141
8142
|
|
|
8142
8143
|
const useCoursePromotionPage = createUseStyles(theme => {
|
|
8143
|
-
console.log(theme, 'themere');
|
|
8144
|
+
// console.log(theme, 'themere');
|
|
8144
8145
|
return {
|
|
8145
8146
|
courseSuperContainer: {
|
|
8146
8147
|
display: 'flex',
|
|
@@ -8449,17 +8450,21 @@ const SingleVideoSlide = props => {
|
|
|
8449
8450
|
isEdit
|
|
8450
8451
|
} = useContext(PageContext);
|
|
8451
8452
|
const renderer = ({
|
|
8453
|
+
days,
|
|
8452
8454
|
hours,
|
|
8453
8455
|
minutes,
|
|
8454
8456
|
seconds,
|
|
8455
8457
|
completed
|
|
8456
8458
|
}) => {
|
|
8457
|
-
|
|
8458
|
-
{
|
|
8459
|
+
if (days === 0 && hours < 24) {
|
|
8459
8460
|
if (countryCode === 'KR') {
|
|
8460
8461
|
return /*#__PURE__*/React.createElement("span", null, hours, " \uC2DC\uAC04 ", minutes, " \uBD84 ", seconds, "\uCD08");
|
|
8461
8462
|
}
|
|
8462
8463
|
return /*#__PURE__*/React.createElement("span", null, hours, "h ", minutes, "m ", seconds, "s");
|
|
8464
|
+
} else {
|
|
8465
|
+
let given = moment(props.data.endDate);
|
|
8466
|
+
let current = moment().startOf('day');
|
|
8467
|
+
return /*#__PURE__*/React.createElement("span", null, Math.floor(moment.duration(given.diff(current)).asDays()), ' ', countryCode === 'KR' ? '일' : 'day(s)');
|
|
8463
8468
|
}
|
|
8464
8469
|
};
|
|
8465
8470
|
const {
|