Skip to content

Commit

Permalink
fix-comite
Browse files Browse the repository at this point in the history
  • Loading branch information
meetarora10 committed Sep 7, 2024
1 parent b5b11f2 commit 41e017e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/MainContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
10 changes: 5 additions & 5 deletions pages/Committee.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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]);

Expand Down

0 comments on commit 41e017e

Please sign in to comment.