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