diff --git a/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx b/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx index ac0434d8..297f6b40 100644 --- a/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx +++ b/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx @@ -1,16 +1,16 @@ -// import { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import cn from "./SectionNavigation.module.scss"; const SectionNavigation = () => { - // const [currentTime, setCurrentTime] = useState(() => new Date().getTime()); + const [currentTime, setCurrentTime] = useState(() => new Date().getTime()); - // useEffect(() => { - // const timer = setInterval(() => { - // setCurrentTime(new Date().getTime()); - // }, 1000); + useEffect(() => { + const timer = setInterval(() => { + setCurrentTime(new Date().getTime()); + }, 1000); - // return () => clearInterval(timer); - // }, []); + return () => clearInterval(timer); + }, []); const scrollToSection = (id) => { window.scrollTo({ @@ -45,21 +45,21 @@ const SectionNavigation = () => {
- {/* {currentTime > - new Date( - "Feb 24 2023 19:00:00 GMT-0800 (Pacific Standard Time)", - ).getTime() && ( + {currentTime > new Date(2024, 4, 17, 17, 30).getTime() && (

Challenge Brief

)} + { }} target="_blank" rel="noopener noreferrer" - href="https://forms.gle/hJmEGwbSc6mhqw9QA" + href="https://drive.google.com/file/d/16pPV0akDO-dMmDiPptWOdiBPETkGuw5o/view" > -

Submission Form

-
*/} +

Handbook

+
);