test
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Neil Parikh 2021-09-12 00:13:40 -04:00
parent 2ba73b398a
commit 0d2e799639
3 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ interface Props {
date: Date; date: Date;
poster?: string; poster?: string;
registerLink?: string; registerLink?: string;
permaLink?: string;
} }
/** /**
@ -35,6 +36,7 @@ export function EventDescriptionCard({
date, date,
online, online,
registerLink, registerLink,
permaLink,
}: Props) { }: Props) {
const Icon = getIcon(location); const Icon = getIcon(location);
@ -43,7 +45,7 @@ export function EventDescriptionCard({
{poster && <Image className={styles.poster} src={poster} alt={name} />} {poster && <Image className={styles.poster} src={poster} alt={name} />}
<div className={styles.details}> <div className={styles.details}>
<h1 className={styles.name}>{name}</h1> <h1 className={styles.name}>{permaLink ? <Link href={permaLink}>name</Link> : name}</h1>
<h2 className={styles.setting}> <h2 className={styles.setting}>
<EventSetting date={date} online={online} location={location} /> <EventSetting date={date} online={online} location={location} />
</h2> </h2>

View File

@ -6,6 +6,7 @@ online: true
location: 'Twitch' location: 'Twitch'
poster: 'images/events/2021/fall/BOT.png' poster: 'images/events/2021/fall/BOT.png'
registerLink: https://bit.ly/csc-bot-event-signup-form registerLink: https://bit.ly/csc-bot-event-signup-form
permaLink: /events/2021/fall/BOT/
--- ---
Kick off the fall term with CS Clubs BOT event! 🍂 Interested in attending upcoming CSC events? Want to meet others in the CS community? Kick off the fall term with CS Clubs BOT event! 🍂 Interested in attending upcoming CSC events? Want to meet others in the CS community?

1
types.d.ts vendored
View File

@ -12,6 +12,7 @@ declare module "*.event.mdx" {
location: string; location: string;
poster?: string; poster?: string;
registerLink?: string; registerLink?: string;
permaLink?: string;
} }
const ReactComponent: ComponentType; const ReactComponent: ComponentType;