From eed3e20f57f9ed4dd1d0e238059942167854170e Mon Sep 17 00:00:00 2001 From: Rajat Rajdeep <46029666+RajatRajdeep@users.noreply.github.com> Date: Sat, 30 Sep 2023 11:50:13 +0530 Subject: [PATCH] Live fix (#254) --- components/schedule.js | 119 +++++++++++++++++++++-------------------- lib/util.js | 9 ++-- 2 files changed, 64 insertions(+), 64 deletions(-) diff --git a/components/schedule.js b/components/schedule.js index f12be47..f0fba69 100644 --- a/components/schedule.js +++ b/components/schedule.js @@ -36,7 +36,8 @@ const getTrackRoom = (num) => { }; const ConferenceSchedule = () => { - const [selectedTab, setSelectedTab] = useState(1); + const defaultScheduleIndex = 1 + const [selectedTab, setSelectedTab] = useState(defaultScheduleIndex); const handleTabClick = (index) => { setSelectedTab(index); @@ -82,9 +83,8 @@ const ConferenceSchedule = () => { {ScheduleData.map((item, index) => (