Skip to content

Commit ea354e6

Browse files
authored
feat: parameterize CFP link (#347)
1 parent e34675a commit ea354e6

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

src/2023/Home/components/ActionButtons/ActionButtons.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const ActionButtons: FC<React.PropsWithChildren<unknown>> = () => {
5252
<Button
5353
onClick={trackCFP}
5454
text="📢 Call For Papers"
55-
link="https://sessionize.com/devbcn23/"
55+
link={data.cfp.link}
5656
/>
5757
)}
5858
{isBetween(sponsorshipStartDay, sponsorshipEndDay) && (

src/2023/Speakers/Speakers2023.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const Speakers2023: FC<React.PropsWithChildren<unknown>> = () => {
8383
<Button
8484
onClick={trackCFP}
8585
text="📢 Apply to be a Speaker"
86-
link="https://sessionize.com/devbcn23/"
86+
link={webData.cfp.link}
8787
/>
8888
</div>
8989
)}

src/data/2023.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
},
66
"cfp": {
77
"startDay": "2022-11-01T00:00:00",
8-
"endDay": "2023-03-15T00:00:00"
8+
"endDay": "2023-03-15T00:00:00",
9+
"link": "https://sessionize.com/devbcn23/"
910
},
1011
"diversity": true,
1112
"edition": "2023",

src/data/2024.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
},
66
"cfp": {
77
"startDay": "2024-01-01T00:00:00",
8-
"endDay": "2024-04-01T00:00:00"
8+
"endDay": "2024-04-01T00:00:00",
9+
"link":"https://sessionize.com/devbcn-2024/"
910
},
1011
"diversity": false,
1112
"edition": "2024",

src/views/Home/components/ActionButtons/ActionButtons.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const ActionButtons: FC<React.PropsWithChildren<unknown>> = () => {
5151
onClick={trackCFP}
5252
text="📢 Call For Papers"
5353
disabled={!isBetween(CFPStartDay, CFPEndDay)}
54-
link="https://sessionize.com/devbcn-2024/"
54+
link={data.cfp.link}
5555
/>
5656
{isBetween(sponsorshipStartDay, sponsorshipEndDay) && (
5757
<Button

src/views/Speakers/Speakers.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const Speakers: FC<React.PropsWithChildren<unknown>> = () => {
8383
<Button
8484
onClick={trackCFP}
8585
text="📢 Apply to be a Speaker"
86-
link="https://sessionize.com/devbcn23/"
86+
link={webData.cfp.link}
8787
/>
8888
</div>
8989
)}

0 commit comments

Comments
 (0)