diy-template-components 0.2.1 → 0.2.3
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 +11 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +11 -3
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -7272,6 +7272,14 @@ var arrowRight = "data:image/svg+xml,%3Csvg%20width%3D%228%22%20height%3D%2214%2
|
|
|
7272
7272
|
const SingleVideoSlide = props => {
|
|
7273
7273
|
const [isReadMore, setIsReadMore] = useState(false);
|
|
7274
7274
|
const theme = useTheme();
|
|
7275
|
+
const {
|
|
7276
|
+
layout: {
|
|
7277
|
+
containerWidth
|
|
7278
|
+
},
|
|
7279
|
+
isMobile,
|
|
7280
|
+
isEdit
|
|
7281
|
+
} = useContext(PageContext);
|
|
7282
|
+
console.log(isEdit, 'isEdit');
|
|
7275
7283
|
useEffect(() => {// remaining days epoch
|
|
7276
7284
|
// current date epoch
|
|
7277
7285
|
// subtract remaining days from current day epoch
|
|
@@ -7302,8 +7310,8 @@ const SingleVideoSlide = props => {
|
|
|
7302
7310
|
conversions = 20,
|
|
7303
7311
|
showCourseInstallment
|
|
7304
7312
|
} = props;
|
|
7305
|
-
const showCourseInstallmentData = data?.courseOverviewData
|
|
7306
|
-
const InstalmentData = data?.courseOverviewData?.installments?.formData?.installments[0].installmentAmount;
|
|
7313
|
+
const showCourseInstallmentData = data?.courseOverviewData;
|
|
7314
|
+
const InstalmentData = isEdit ? data?.courseOverviewData?.installments?.formData?.installments[0].installmentAmount : data?.courseOverviewData?.installments?.formData?.installmentInfo?.installments[0].installmentPrice;
|
|
7307
7315
|
|
|
7308
7316
|
const checkIfOfferIsValid = () => moment().diff(moment(props?.data?.endDate || 0)) < 0;
|
|
7309
7317
|
|
|
@@ -7472,7 +7480,7 @@ const SingleVideoSlide = props => {
|
|
|
7472
7480
|
className: classes.payInstallmentHeader
|
|
7473
7481
|
}, /*#__PURE__*/React.createElement("h4", null, /*#__PURE__*/React.createElement("span", {
|
|
7474
7482
|
dangerouslySetInnerHTML: {
|
|
7475
|
-
__html: ` Start learning at Rs ${InstalmentData}`
|
|
7483
|
+
__html: ` Start learning at Rs ${isEdit ? InstalmentData : InstalmentData / 100}`
|
|
7476
7484
|
}
|
|
7477
7485
|
})), /*#__PURE__*/React.createElement("p", null, "Pay in Instalments")), /*#__PURE__*/React.createElement("img", {
|
|
7478
7486
|
className: classes.arrowRightIcon,
|