diy-template-components 2.0.29 → 2.0.31

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 CHANGED
@@ -9942,31 +9942,44 @@ function ABOUT_INSTITUTE({
9942
9942
  __html: nodeData?.content?.metadata?.value
9943
9943
  }
9944
9944
  })) : null);
9945
- const HighlightJSX = () => /*#__PURE__*/React.createElement("div", {
9946
- className: classes.cardWrapper
9947
- }, /*#__PURE__*/React.createElement("div", {
9948
- className: classes.card
9949
- }, /*#__PURE__*/React.createElement("div", {
9950
- className: classes.cardDesc
9951
- }, /*#__PURE__*/React.createElement("span", {
9952
- className: classes.highlightText
9953
- }, highlightNodeData?.courses?.metadata?.value), /*#__PURE__*/React.createElement("span", null, "Courses")), /*#__PURE__*/React.createElement(Icon, {
9954
- name: 'BookSaved',
9955
- color: theme.palette.font.primary,
9956
- width: '32px',
9957
- height: '32px'
9958
- })), /*#__PURE__*/React.createElement("div", {
9959
- className: classes.card
9960
- }, /*#__PURE__*/React.createElement("div", {
9961
- className: classes.cardDesc
9962
- }, /*#__PURE__*/React.createElement("span", {
9963
- className: classes.highlightText
9964
- }, highlightNodeData?.students?.metadata?.value), /*#__PURE__*/React.createElement("span", null, "Active Students")), /*#__PURE__*/React.createElement(Icon, {
9965
- name: 'GroupProfile',
9966
- color: theme.palette.font.primary,
9967
- width: '32px',
9968
- height: '32px'
9969
- })));
9945
+ const HighlightJSX = () => {
9946
+ if (!nodeData?.highlight?.metadata?.value) {
9947
+ return null;
9948
+ }
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
+ };
9970
9983
  return /*#__PURE__*/React.createElement("div", {
9971
9984
  className: classes.aboutInstWrapper
9972
9985
  }, nodeData?.heading?.metadata?.value ? /*#__PURE__*/React.createElement("div", {