Skip to content

Commit ec1fd9a

Browse files
committed
added schedule links for educationals
1 parent 29dfb73 commit ec1fd9a

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/components/Schedule/Schedule.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const ScheduleCalendar = () => {
4747
const getEventClassNames = (eventInfo) => {
4848
switch (eventInfo.event.extendedProps.type) {
4949
case 'educational':
50-
return ['event-color-1']; // append back 'clickable-event' when link is needed
50+
return ['event-color-1', 'clickable-event']; // append back 'clickable-event' when link is needed
5151
case 'events':
5252
return ['event-color-2'];
5353
case 'hacking':
@@ -62,12 +62,12 @@ const ScheduleCalendar = () => {
6262
};
6363

6464
const renderEventContent = (eventInfo) => {
65-
const isKeynote = eventInfo.event.extendedProps.type === 'keynote'
65+
const link = eventInfo.event.extendedProps.link
6666

67-
if (isKeynote) {
67+
if (link) {
6868
return (
6969
<a
70-
href={`#/speakers`}
70+
href={link}
7171
className="custom-event-content clickable"
7272
onClick={(e) => e.stopPropagation()}
7373
>

src/components/Schedule/events.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const events = [
1717
end: '2025-01-24T18:00:00',
1818
description: 'Opening ceremony and keynote presentation',
1919
extendedProps: {
20-
type: 'keynote'
20+
type: 'keynote',
21+
link: '#/speakers'
2122
}
2223
},
2324
{
@@ -57,7 +58,8 @@ export const events = [
5758
start: '2025-01-25T11:00:00',
5859
end: '2025-01-25T11:30:00',
5960
extendedProps: {
60-
type: 'educational'
61+
type: 'educational',
62+
link: 'https://github.com/brainhack-vandy/traintrack'
6163
}
6264
},
6365
{
@@ -77,7 +79,7 @@ export const events = [
7779
end: '2025-01-25T14:00:00',
7880
description: 'Educational sessions available on demand',
7981
extendedProps: {
80-
type: 'educational'
82+
type: 'events'
8183
}
8284
},
8385
{
@@ -86,7 +88,8 @@ export const events = [
8688
start: '2025-01-25T14:00:00',
8789
end: '2025-01-25T14:30:00',
8890
extendedProps: {
89-
type: 'educational'
91+
type: 'educational',
92+
link: 'https://github.com/brainhack-vandy/traintrack'
9093
}
9194
},
9295
{
@@ -104,7 +107,8 @@ export const events = [
104107
start: '2025-01-25T15:00:00',
105108
end: '2025-01-25T15:30:00',
106109
extendedProps: {
107-
type: 'educational'
110+
type: 'educational',
111+
link: 'https://github.com/brainhack-vandy/traintrack'
108112
}
109113
},
110114
{

0 commit comments

Comments
 (0)