nvis-fe-cms-libs 1.1.22 → 1.1.23

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.
@@ -657,11 +657,12 @@ const AboutCompanySection = ({ data, t, isDarkMode }) => {
657
657
  )
658
658
  ] });
659
659
  };
660
- const TimelineSection = ({ data, t, isDarkMode }) => {
660
+ const TimelineSection = ({ data, t, isDarkMode, section }) => {
661
661
  var _a;
662
662
  const timelineData = ((_a = data == null ? void 0 : data.sectionDataBindingItems) == null ? void 0 : _a.filter((item) => item == null ? void 0 : item.data).map((item) => item.data)) || [];
663
663
  const [timelineVisible, setTimelineVisible] = useState([]);
664
664
  const timelineRefs = useRef([]);
665
+ const sectionTitle = (section == null ? void 0 : section.title) || "";
665
666
  useEffect(() => {
666
667
  setTimelineVisible(new Array(timelineData.length).fill(false));
667
668
  }, [timelineData.length]);
@@ -703,7 +704,7 @@ const TimelineSection = ({ data, t, isDarkMode }) => {
703
704
  className: `relative inline-block px-4 py-2 rounded-full text-sm font-semibold mb-4 border transition-all duration-300 transform hover:scale-105 shadow-md hover:shadow-lg overflow-hidden ${isDarkMode ? "bg-gradient-to-br from-slate-900 via-blue-900 to-indigo-900 text-emerald-300 border-blue-800" : "bg-white text-emerald-800 border-gray-200"}`,
704
705
  children: [
705
706
  "📈 ",
706
- timelineData.title,
707
+ sectionTitle,
707
708
  isDarkMode && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
708
709
  /* @__PURE__ */ jsxRuntimeExports.jsx(
709
710
  "div",