Skip to content

Commit f8b9936

Browse files
authored
conf: minor fixes (graphql#1528)
1 parent f2b72f1 commit f8b9936

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import React from "react"
22

3-
export const BackLink = () => {
3+
export const BackLink = ({ kind }: { kind: "speakers" | "schedule" }) => {
44
return (
55
<a
6-
href="/conf/schedule"
6+
href={`/conf/${kind}`}
77
className="w-max rounded-md underline-offset-2 cursor-pointer transition-all text-sm no-underline text-[#333333]"
88
>
9-
<span>{"<"}&nbsp;&nbsp;Back to Schedule</span>
9+
<span>
10+
{"<"}&nbsp;&nbsp;Back to {kind === "speakers" ? "Speakers" : "Schedule"}
11+
</span>
1012
</a>
1113
)
1214
}

src/templates/event.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const EventComponent: FC<{
5757
<div className={`bg-white ${!hideBackButton ? "py-10" : ""}`}>
5858
<section className="text-[#333333] min-h-[80vh] flex-col mx-auto px-2 xs:px-0 lg:justify-between justify-center md:container">
5959
<div className="flex flex-col lg:px-0">
60-
{!hideBackButton && <BackLink />}
60+
{!hideBackButton && <BackLink kind="schedule" />}
6161
<div className="mt-10 flex flex-col self-center prose lg:prose-lg sm:space-y-8">
6262
<div className="flex gap-5 mb-1.5">
6363
<span className="flex items-center">

src/templates/speaker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const SpeakersTemplate: FC<
3333
<div className="bg-[#F4F6F8] py-10">
3434
<section className="text-[#333333] min-h-[80vh] mx-auto flex flex-col px-2 xs:px-0 md:container">
3535
<div className="lg:px-0 flex flex-col">
36-
<BackLink />
36+
<BackLink kind="speakers" />
3737
<div className="mt-10 self-center prose lg:prose-lg space-y-12">
3838
<div className="flex flex-col sm:flex-row gap-0 sm:gap-10 gap-y-5">
3939
<div className="flex flex-col items-start gap-y-5">

src/templates/speakers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const SpeakersTemplate: FC<PageProps<{}, { speakers: SchedSpeaker[] }>> = ({
5252
</p>
5353
</div>
5454
</div>
55-
<section className="bg-white md:container px-2 xs:px-0 mt-8 flex gap-y-8 flex-wrap lg:justify-between justify-center">
55+
<section className="bg-white md:container px-2 xs:px-0 mt-8 flex gap-8 flex-wrap lg:justify-between justify-center">
5656
{speakers.length ? (
5757
speakers.map(speaker => <Speaker key={speaker.name} {...speaker} />)
5858
) : (

0 commit comments

Comments
 (0)