Skip to content

Commit 1987ff8

Browse files
committed
added keynote schedule links
1 parent d51c0b6 commit 1987ff8

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/components/Schedule/Schedule.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const ScheduleCalendar = () => {
5353
case 'hacking':
5454
return ['event-color-3'];
5555
case 'keynote':
56-
return ['event-color-4'];
56+
return ['event-color-4', 'clickable-event'];
5757
case 'unconference':
5858
return ['event-color-5'];
5959
default:
@@ -62,14 +62,12 @@ const ScheduleCalendar = () => {
6262
};
6363

6464
const renderEventContent = (eventInfo) => {
65-
const isClickable = ['workshop', 'keynote'].includes(eventInfo.event.extendedProps.type);
65+
const isKeynote = eventInfo.event.extendedProps.type === 'keynote'
6666

67-
if (isClickable) {
67+
if (isKeynote) {
6868
return (
6969
<a
70-
href="https://brainhack-vandy.github.io/"
71-
target="_blank"
72-
rel="noopener noreferrer"
70+
href={`#/speakers`}
7371
className="custom-event-content clickable"
7472
onClick={(e) => e.stopPropagation()}
7573
>
@@ -78,6 +76,22 @@ const ScheduleCalendar = () => {
7876
);
7977
}
8078

79+
// const isWorkshop = eventInfo.event.extendedProps.type === 'workshop';
80+
81+
// if (isWorkshop) {
82+
// return (
83+
// <a
84+
// href="https://brainhack-vandy.github.io/"
85+
// target="_blank"
86+
// rel="noopener noreferrer"
87+
// className="custom-event-content clickable"
88+
// onClick={(e) => e.stopPropagation()}
89+
// >
90+
// <div className="event-title">{eventInfo.event.title}</div>
91+
// </a>
92+
// );
93+
// }
94+
8195
return (
8296
<div className="custom-event-content">
8397
<div className="event-title">{eventInfo.event.title}</div>

0 commit comments

Comments
 (0)