Skip to content

Commit a91bd48

Browse files
committed
Always lowercase social service name
1 parent 29fda73 commit a91bd48

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

scripts/sync-sched/speakers.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@
20742074
"socialurls": [
20752075
{
20762076
"service": "Twitter",
2077-
"url": "https://twitter.com/matteocollins"
2077+
"url": "https://twitter.com/matteocollina"
20782078
}
20792079
],
20802080
"_years": [
@@ -3241,4 +3241,4 @@
32413241
],
32423242
"~syncedDetailsAt": 1749580595155
32433243
}
3244-
]
3244+
]

src/app/conf/2025/components/speaker-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function SpeakerCard({
8989
</div>
9090
<Anchor
9191
href={`/conf/${year}/speakers/${speaker.username}`}
92-
className="absolute inset-0 z-[1] ring-inset ring-neu-400 hover:bg-sec-base/[.035] hover:ring-1 dark:ring-neu-100"
92+
className="absolute inset-0 z-[1] ring-inset ring-neu-400 hover:bg-sec-base/[.035] hover:ring-1 dark:ring-neu-100 dark:hover:bg-sec-base/[.05]"
9393
aria-label={`See ${speaker.name.split(" ")[0]}'s sessions`}
9494
/>
9595
</article>

src/app/conf/2025/components/speaker-links.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export function SpeakerLinks({
1919
...rest
2020
}: SpeakerLinksProps) {
2121
const speakerUrls = SocialIconType.all
22-
.map(social => speaker.socialurls.find(x => x.service === social))
22+
.map(social =>
23+
speaker.socialurls.find(
24+
x => x.service.toLowerCase() === social.toLowerCase(),
25+
),
26+
)
2327
.concat([{ service: "website", url: speaker.url || "" }])
2428
.filter((x): x is Exclude<typeof x, undefined> => !!x?.url)
2529
.slice(-3)

src/app/conf/_design-system/social-icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface SocialIconProps extends React.SVGProps<SVGSVGElement> {
3333
}
3434

3535
export const SocialIcon = ({ type, ...rest }: SocialIconProps) => {
36-
switch (type) {
36+
switch (type.toLowerCase()) {
3737
case "twitter":
3838
return <TwitterIcon {...rest} />
3939
case "linkedin":

0 commit comments

Comments
 (0)