diff --git a/src/app/(non-home)/events/EventsList.tsx b/src/app/(non-home)/events/EventsList.tsx index 2d6f0aa..2887cf2 100644 --- a/src/app/(non-home)/events/EventsList.tsx +++ b/src/app/(non-home)/events/EventsList.tsx @@ -1,7 +1,7 @@ export const EventsList = [ { - event_name: 'Brand Design Bootcamp', - event_type: '', + event_name: 'Camp DCo', + event_type: 'GBMs/Socials', imgLink: 'https://ucsddesign.co/static/media/20240605.79d99bfd.png', event_link: 'https://www.instagram.com/p/C5uQ6scJhxt/', date: 'Wednesday, April 17', @@ -9,23 +9,23 @@ export const EventsList = [ }, { event_name: 'Design Frontiers 2024', - event_type: '', + event_type: 'Large-Scale Events', imgLink: 'https://ucsddesign.co/static/media/20240605.79d99bfd.png', event_link: 'https://www.instagram.com/p/C5uQ6scJhxt/', date: 'Wednesday, April 17', location: 'DIB 208' }, { - event_name: 'Brand Design Bootcamp', - event_type: '', + event_name: 'Fall Kickoff', + event_type: 'GBMs/Socials', imgLink: 'https://ucsddesign.co/static/media/20240605.79d99bfd.png', event_link: 'https://www.instagram.com/p/C5uQ6scJhxt/', date: 'Wednesday, April 17', location: 'DIB 208' }, { - event_name: 'Brand Design Bootcamp', - event_type: '', + event_name: 'Handels Ice Cream Run', + event_type: 'Large-Scale Events', imgLink: 'https://ucsddesign.co/static/media/20240605.79d99bfd.png', event_link: 'https://www.instagram.com/p/C5uQ6scJhxt/', date: 'Wednesday, April 17', @@ -33,7 +33,7 @@ export const EventsList = [ }, { event_name: 'Brand Design Bootcamp', - event_type: '', + event_type: 'GBMs/Socials', imgLink: 'https://ucsddesign.co/static/media/20240605.79d99bfd.png', event_link: 'https://www.instagram.com/p/C5uQ6scJhxt/', date: 'Wednesday, April 17', diff --git a/src/app/(non-home)/events/PastEventSection.tsx b/src/app/(non-home)/events/PastEventSection.tsx index 1679385..b54aa91 100644 --- a/src/app/(non-home)/events/PastEventSection.tsx +++ b/src/app/(non-home)/events/PastEventSection.tsx @@ -18,6 +18,10 @@ export default function EventSection() { // const buttonClass = (buttonNumber: number) => // active === buttonNumber ? 'normal' : 'clicked'; + const filteredEvents = EventsList.filter( + event => event.event_type === eventType + ); + return (
@@ -40,7 +44,7 @@ export default function EventSection() {

2023-2024

- {EventsList.map(item => ( + {filteredEvents.map(item => (