From 0c6f403e3068857747b30dd2b67b9c3584de3bb2 Mon Sep 17 00:00:00 2001 From: ahmadhassoun366 Date: Wed, 2 Aug 2023 05:01:20 -0700 Subject: [PATCH] updating svg --- src/app/(header-footer)/roadmap/page.jsx | 68 +++++++++++++----------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/src/app/(header-footer)/roadmap/page.jsx b/src/app/(header-footer)/roadmap/page.jsx index e3df601..1e901b9 100644 --- a/src/app/(header-footer)/roadmap/page.jsx +++ b/src/app/(header-footer)/roadmap/page.jsx @@ -5,15 +5,28 @@ import { useState } from "react"; export default function useRoadmap() { const [selectedYear, setSelectedYear] = useState(1); - + const [selectedSvg1, setSelectedSvg1] = useState(true); const [selectedSvg2, setSelectedSvg2] = useState(false); const [selectedSvg3, setSelectedSvg3] = useState(false); - const handleYearClick = (year) => { setSelectedYear(year); + if (year === 1) { + setSelectedSvg1(true); + setSelectedSvg2(false); + setSelectedSvg3(false); + } + + if (year === 2) { + setSelectedSvg1(false); + setSelectedSvg2(true); + setSelectedSvg3(false); + } - if (year === 2) setSelectedSvg2(true); - if (year === 3) setSelectedSvg3(true); + if (year === 3) { + setSelectedSvg1(false); + setSelectedSvg2(false); + setSelectedSvg3(true); + } }; return (
@@ -201,18 +214,20 @@ export default function useRoadmap() { onClick={() => handleYearClick(1)} > - - Year 1 - + {selectedSvg1 && ( + + Year 1 + + )} handleYearClick(2)} > @@ -275,22 +290,15 @@ export default function useRoadmap() { {/* Render the content based on the selected year */} {selectedYear === 1 && ( -
+
-
    -
  • Formation of UAE Legal Entity
  • -
  • AI Integration
  • -
  • +
      +
    • Formation of UAE Legal Entity
    • +
    • AI Integration
    • +
    • Active Participant Formation, Vote, and Selection
    • -
    • - BrickLayer Tenant Acquisition Service -
    • +
    • BrickLayer Tenant Acquisition Service