diy-template-components 1.0.1 → 1.0.2
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 +17 -10
- package/build/index.es.js.map +1 -1
- package/build/index.js +17 -10
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function ___$insertStyle(css) {
|
|
2
|
-
if (!css ||
|
|
3
|
-
return;
|
|
4
|
-
}
|
|
5
|
-
const style = document.createElement('style');
|
|
6
|
-
style.setAttribute('type', 'text/css');
|
|
7
|
-
style.innerHTML = css;
|
|
8
|
-
document.head.appendChild(style);
|
|
9
|
-
return css;
|
|
1
|
+
function ___$insertStyle(css) {
|
|
2
|
+
if (!css || typeof window === 'undefined') {
|
|
3
|
+
return;
|
|
4
|
+
}
|
|
5
|
+
const style = document.createElement('style');
|
|
6
|
+
style.setAttribute('type', 'text/css');
|
|
7
|
+
style.innerHTML = css;
|
|
8
|
+
document.head.appendChild(style);
|
|
9
|
+
return css;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
import React, { createContext, useContext, forwardRef, useRef, useEffect, useState, useMemo, useLayoutEffect, Suspense, memo, lazy, Fragment } from 'react';
|
|
@@ -7966,6 +7966,13 @@ const SingleVideoSlide = props => {
|
|
|
7966
7966
|
return 'Read More';
|
|
7967
7967
|
}
|
|
7968
7968
|
};
|
|
7969
|
+
const handleCourseCertificateText = () => {
|
|
7970
|
+
if (countryCode === 'KR') {
|
|
7971
|
+
return '수료증 발급';
|
|
7972
|
+
} else {
|
|
7973
|
+
return 'Course Certificate';
|
|
7974
|
+
}
|
|
7975
|
+
};
|
|
7969
7976
|
return /*#__PURE__*/React.createElement("div", {
|
|
7970
7977
|
className: classes.videoCarouselContainer
|
|
7971
7978
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -8018,7 +8025,7 @@ const SingleVideoSlide = props => {
|
|
|
8018
8025
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8019
8026
|
name: 'Certificate',
|
|
8020
8027
|
color: theme.palette.primary.main
|
|
8021
|
-
})), /*#__PURE__*/React.createElement("div", null, data?.courseOverviewData?.metaData?.isCertificateEnabled ?
|
|
8028
|
+
})), /*#__PURE__*/React.createElement("div", null, data?.courseOverviewData?.metaData?.isCertificateEnabled ? handleCourseCertificateText() : null)) : null, data?.courseOverviewData?.resourseDataText.heading ? /*#__PURE__*/React.createElement("div", {
|
|
8022
8029
|
className: classes.courseDetailTag
|
|
8023
8030
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8024
8031
|
className: classes.iconBackground
|