diff --git a/src/Assets/Lists/allEvents.js b/src/Assets/Lists/allEvents.js index 9b3080fdb..99d67febd 100644 --- a/src/Assets/Lists/allEvents.js +++ b/src/Assets/Lists/allEvents.js @@ -5,9 +5,7 @@ export const allEvents = [ { EventName: "First Year Recruitment", - displayDate: "Deadline: September 19th @ 11:59PM", date: "2022/10/05", - link: "https://forms.gle/ua2gKPgu3DGWC3wz9", highlightEvent: false, }, { @@ -16,7 +14,7 @@ export const allEvents = [ displayDate: "September 22nd, 2022", date: "2022/09/22", link: "https://www.eventbrite.ca/e/ieee-uoft-react-workshop-tickets-420908186717", - highlightEvent: true, + highlightEvent: false, }, { EventName: "Technical Interview Night", @@ -29,14 +27,15 @@ export const allEvents = [ EventName: "NewHacks", displayDate: "November 5-6, 2022", date: "2022/11/05", - link: "https://www.newhacks.ca/", + link: "https://newhacks-2022.devpost.com/", highlightEvent: true, }, { EventName: "MakeUofT", - displayDate: "February 18-19, 2022", - date: "2022/02/18", - highlightEvent: false, + displayDate: "February 18-19, 2023", + date: "2023/02/18", + link: "https://makeuoft-2023.devpost.com/", + highlightEvent: true, }, ]; diff --git a/src/Components/Home/Events/Events.js b/src/Components/Home/Events/Events.js index 99acaebcb..6cfe15b63 100644 --- a/src/Components/Home/Events/Events.js +++ b/src/Components/Home/Events/Events.js @@ -18,7 +18,7 @@ const Events = () => { const [compact, setCompact] = useState(true); return (
-

All Events

+

Past Events

setCompact(!compact)} className={styles.compactBtn}> {compact ? "expand" : "minimize"}

diff --git a/src/Components/Home/Upcoming/Upcoming.js b/src/Components/Home/Upcoming/Upcoming.js index 3e3ab2c78..3ed10ba36 100644 --- a/src/Components/Home/Upcoming/Upcoming.js +++ b/src/Components/Home/Upcoming/Upcoming.js @@ -29,10 +29,10 @@ const Upcoming = () => { let upcomingList = upcomingEvents(); let upcomingClass = ""; let recentHighlights = upcomingList.length === 0 ? true : false; - // if (recentHighlights) { + if (recentHighlights) { // 3 events where the highlightEvent flag is true in allEvents.js - upcomingList = allEvents.filter((event) => event.highlightEvent).slice(0, 3); - // } + upcomingList = allEvents.filter((event) => event.highlightEvent).slice(0, 3); + } if (upcomingList.length < 3) { upcomingClass = styles.two;