Skip to content

Commit

Permalink
Merge pull request #67 from ieeeuoft/add-devpost-links
Browse files Browse the repository at this point in the history
Add devpost links to past hackathons
  • Loading branch information
Mustaballer committed Aug 12, 2023
2 parents b743734 + 61760d4 commit c164ccb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions src/Assets/Lists/allEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand All @@ -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",
Expand All @@ -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,
},
];

Expand Down
2 changes: 1 addition & 1 deletion src/Components/Home/Events/Events.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Events = () => {
const [compact, setCompact] = useState(true);
return (
<div className={styles.eventsDiv}>
<h2 className={styles.eventsDivHeading}>All Events</h2>
<h2 className={styles.eventsDivHeading}>Past Events</h2>
<p onClick={() => setCompact(!compact)} className={styles.compactBtn}>
{compact ? "expand" : "minimize"}
</p>
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Home/Upcoming/Upcoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c164ccb

Please sign in to comment.