diy-template-components 0.0.49 → 0.0.52
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 +28 -34
- package/build/index.es.js.map +1 -1
- package/build/index.js +5 -11
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -951,8 +951,6 @@ function Dropdown(props) {
|
|
|
951
951
|
})));
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
const isCoursesLink = data => data.link === 'courses';
|
|
955
|
-
|
|
956
954
|
function OptionList({
|
|
957
955
|
optionsData,
|
|
958
956
|
headerData,
|
|
@@ -960,9 +958,7 @@ function OptionList({
|
|
|
960
958
|
moreContent,
|
|
961
959
|
navDataCount
|
|
962
960
|
}) {
|
|
963
|
-
|
|
964
|
-
isPreview
|
|
965
|
-
} = React.useContext(PageContext);
|
|
961
|
+
React.useContext(PageContext);
|
|
966
962
|
|
|
967
963
|
const tabsDataModifier = () => {
|
|
968
964
|
return optionsData?.map(dt => {
|
|
@@ -985,7 +981,7 @@ function OptionList({
|
|
|
985
981
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
986
982
|
className: classes.optionList
|
|
987
983
|
}, tabData?.map((dt, ind) => {
|
|
988
|
-
return /*#__PURE__*/React__default["default"].createElement(Button,
|
|
984
|
+
return /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
989
985
|
key: ind,
|
|
990
986
|
data: dt,
|
|
991
987
|
type: 'tertiary',
|
|
@@ -996,9 +992,7 @@ function OptionList({
|
|
|
996
992
|
margin: '0 10px'
|
|
997
993
|
},
|
|
998
994
|
active: dt.active
|
|
999
|
-
}
|
|
1000
|
-
target: '_blank'
|
|
1001
|
-
} : {}));
|
|
995
|
+
});
|
|
1002
996
|
})), navDataCount > 5 && !isMobile ? /*#__PURE__*/React__default["default"].createElement(Dropdown, {
|
|
1003
997
|
list: moreContent,
|
|
1004
998
|
label: 'More',
|
|
@@ -5133,7 +5127,7 @@ function CourseCard({
|
|
|
5133
5127
|
const classes = useCourseStyles();
|
|
5134
5128
|
const {
|
|
5135
5129
|
isEdit
|
|
5136
|
-
} = useContext(PageContext);
|
|
5130
|
+
} = React.useContext(PageContext);
|
|
5137
5131
|
const discount = parseInt((card?.price - card?.finalPrice) / card?.price * 100).toFixed(2);
|
|
5138
5132
|
const defaultCardImg = 'https://cp-assets-public.s3.ap-south-1.amazonaws.com/cams/cards-icon/default_course.png';
|
|
5139
5133
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -5176,7 +5170,7 @@ function CourseCard({
|
|
|
5176
5170
|
className: classes.courseCardStrikePrice
|
|
5177
5171
|
}, /*#__PURE__*/React__default["default"].createElement("span", null, '₹', card?.price), ' ', discount > 0 && discount + '% OFF')), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
5178
5172
|
className: classes.coursesAnchorTag,
|
|
5179
|
-
href: isEdit ? card?.shareableLink
|
|
5173
|
+
href: isEdit ? null : card?.shareableLink
|
|
5180
5174
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5181
5175
|
className: classes.courseCardBuyBtn
|
|
5182
5176
|
}, "Buy Now")))));
|