From 41e017e1fe009b692c9e6d3262fd61fd48e01ba4 Mon Sep 17 00:00:00 2001 From: meetarora Date: Sat, 7 Sep 2024 07:08:43 +0530 Subject: [PATCH] fix-comite --- components/MainContent.jsx | 2 +- pages/Committee.jsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/MainContent.jsx b/components/MainContent.jsx index 594c387..f90e1aa 100644 --- a/components/MainContent.jsx +++ b/components/MainContent.jsx @@ -16,7 +16,7 @@ const divStyle = { const Main = () => { const slides = [ - { url: '../college_blur_img.png' }, + { url: 'https://msit.in/media/2017/03/15/aboutmsit.png' }, { url: 'https://images.squarespace-cdn.com/content/v1/5b9c8fb3c258b42748351a07/1597188834721-JRFYXCZIONFBUFUGUD6V/climate+change+women+gender+equality+action+1' }, { url: 'https://www.ece.fr/wp-content/uploads/sites/2/2024/04/42045_large.jpg?w=1200&h=630&crop=1' }, { url: 'https://news.sap.com/india/files/2022/08/09/sustainability-banner.jpg' }, diff --git a/pages/Committee.jsx b/pages/Committee.jsx index ecb4a3a..9cd95ee 100644 --- a/pages/Committee.jsx +++ b/pages/Committee.jsx @@ -3,7 +3,7 @@ import './style.css'; const Committee = () => { const [activeCommittee, setActiveCommittee] = useState(null); // Default to 'committee0' - const [activeTab, setActiveTab] = useState(null); // Default to 'home' + const [activeTab, setActiveTab] = useState('committee0'); // Default to 'home' const listRef = useRef(null); const changeTab = (id) => { @@ -49,10 +49,10 @@ const Committee = () => { const elementPosition = elementRect - bodyRect; const offsetPosition = elementPosition - offset; - window.scrollTo({ - top: offsetPosition, - behavior: 'smooth', - }); + // window.scrollTo({ + // top: offsetPosition, + // behavior: 'smooth', + // }); } }, [activeTab]);