diy-template-components 2.0.30 → 2.0.32
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 +38 -33
- package/build/index.es.js.map +1 -1
- package/build/index.js +38 -33
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -6662,7 +6662,7 @@ const SingleSlide = ({
|
|
|
6662
6662
|
className: classes.singleSlideContainer
|
|
6663
6663
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6664
6664
|
className: classes.imageContainer
|
|
6665
|
-
}, data?.teamSlideStarTutor?.metadata?.value
|
|
6665
|
+
}, data?.teamSlideStarTutor?.metadata?.value ? /*#__PURE__*/React.createElement("span", {
|
|
6666
6666
|
className: classes.starTag
|
|
6667
6667
|
}, /*#__PURE__*/React.createElement("img", {
|
|
6668
6668
|
src: StarIcon
|
|
@@ -9942,39 +9942,44 @@ function ABOUT_INSTITUTE({
|
|
|
9942
9942
|
__html: nodeData?.content?.metadata?.value
|
|
9943
9943
|
}
|
|
9944
9944
|
})) : null);
|
|
9945
|
-
const HighlightJSX = () =>
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
className: classes.card
|
|
9949
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
9950
|
-
className: classes.cardDesc
|
|
9951
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
9952
|
-
className: classes.highlightText,
|
|
9953
|
-
ref: highlightNodeData?.courses?.refSetter,
|
|
9954
|
-
dangerouslySetInnerHTML: {
|
|
9955
|
-
__html: highlightNodeData?.courses?.metadata?.value
|
|
9956
|
-
}
|
|
9957
|
-
}), /*#__PURE__*/React.createElement("span", null, "Courses")), /*#__PURE__*/React.createElement(Icon, {
|
|
9958
|
-
name: 'BookSaved',
|
|
9959
|
-
color: theme.palette.font.primary,
|
|
9960
|
-
width: '32px',
|
|
9961
|
-
height: '32px'
|
|
9962
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
9963
|
-
className: classes.card
|
|
9964
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
9965
|
-
className: classes.cardDesc
|
|
9966
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
9967
|
-
className: classes.highlightText,
|
|
9968
|
-
ref: highlightNodeData?.students?.refSetter,
|
|
9969
|
-
dangerouslySetInnerHTML: {
|
|
9970
|
-
__html: highlightNodeData?.students?.metadata?.value
|
|
9945
|
+
const HighlightJSX = () => {
|
|
9946
|
+
if (!nodeData?.highlight?.metadata?.value) {
|
|
9947
|
+
return null;
|
|
9971
9948
|
}
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9949
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9950
|
+
className: classes.cardWrapper
|
|
9951
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9952
|
+
className: classes.card
|
|
9953
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9954
|
+
className: classes.cardDesc
|
|
9955
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9956
|
+
className: classes.highlightText,
|
|
9957
|
+
ref: highlightNodeData?.courses?.refSetter,
|
|
9958
|
+
dangerouslySetInnerHTML: {
|
|
9959
|
+
__html: highlightNodeData?.courses?.metadata?.value
|
|
9960
|
+
}
|
|
9961
|
+
}), /*#__PURE__*/React.createElement("span", null, "Courses")), /*#__PURE__*/React.createElement(Icon, {
|
|
9962
|
+
name: 'BookSaved',
|
|
9963
|
+
color: theme.palette.font.primary,
|
|
9964
|
+
width: '32px',
|
|
9965
|
+
height: '32px'
|
|
9966
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
9967
|
+
className: classes.card
|
|
9968
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9969
|
+
className: classes.cardDesc
|
|
9970
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9971
|
+
className: classes.highlightText,
|
|
9972
|
+
ref: highlightNodeData?.students?.refSetter,
|
|
9973
|
+
dangerouslySetInnerHTML: {
|
|
9974
|
+
__html: highlightNodeData?.students?.metadata?.value
|
|
9975
|
+
}
|
|
9976
|
+
}), /*#__PURE__*/React.createElement("span", null, "Active Students")), /*#__PURE__*/React.createElement(Icon, {
|
|
9977
|
+
name: 'GroupProfile',
|
|
9978
|
+
color: theme.palette.font.primary,
|
|
9979
|
+
width: '32px',
|
|
9980
|
+
height: '32px'
|
|
9981
|
+
})));
|
|
9982
|
+
};
|
|
9978
9983
|
return /*#__PURE__*/React.createElement("div", {
|
|
9979
9984
|
className: classes.aboutInstWrapper
|
|
9980
9985
|
}, nodeData?.heading?.metadata?.value ? /*#__PURE__*/React.createElement("div", {
|