fix: cancelled
This commit is contained in:
parent
8a01370b3b
commit
0c067f238b
1 changed files with 6 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import { church } from '@/utils/church'
|
|||
import { ChurchIcon } from '@/components/ChurchIcon/ChurchIcon'
|
||||
import { Cross } from '@/components/Cross/Cross'
|
||||
import { Testimony } from '@/components/Testimony/Testimony'
|
||||
import { Pill } from '@/components/Pill/Pill'
|
||||
|
||||
type WorshipPageProps = {
|
||||
worship: WorshipType
|
||||
|
|
@ -21,7 +22,7 @@ export const Worship = ({ worship }: WorshipPageProps) => {
|
|||
const day = date.toLocaleDateString('de-DE', {weekday: 'long'} )
|
||||
const localeDate = useDate(worship.date)
|
||||
const liturgicalDay = worship.liturgicalDay ? worship.liturgicalDay : liturgicalDayName(worship.date);
|
||||
const what = worship.title ? worship.title : transformCategory(worship.type);
|
||||
const what = worship.title ? worship.title : transformCategory(worship.type) + " ";
|
||||
const time = date.toLocaleTimeString("de-DE", { timeStyle: "short", timeZone: "Europe/Berlin" });
|
||||
|
||||
return (
|
||||
|
|
@ -35,6 +36,7 @@ export const Worship = ({ worship }: WorshipPageProps) => {
|
|||
size={'xl'}
|
||||
color={'contrast'}
|
||||
align={"center"}
|
||||
cancelled={worship.cancelled}
|
||||
/>
|
||||
|
||||
<p className={styles.liturgicalDay}>
|
||||
|
|
@ -46,6 +48,9 @@ export const Worship = ({ worship }: WorshipPageProps) => {
|
|||
<EventExcerpt>
|
||||
<EventExcerptRow label={"Was:"}>
|
||||
{what}
|
||||
{ worship.cancelled &&
|
||||
<Pill schema={"contrast"}>Abgesagt</Pill>
|
||||
}
|
||||
</EventExcerptRow>
|
||||
<EventExcerptRow label={"Wo:"}>
|
||||
{ typeof worship.location == "object" &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue