fix: Familiengottesdienst

This commit is contained in:
Benno Tielen 2026-08-28 14:39:38 +02:00
parent 8f0c47419b
commit 79a261db92
4 changed files with 7 additions and 6 deletions

View file

@ -66,7 +66,7 @@ export const Worship: CollectionConfig = {
value: 'MASS', value: 'MASS',
}, },
{ {
label: 'Familien Messe', label: 'Familiengottesdienst',
value: 'FAMILY', value: 'FAMILY',
}, },
{ {

View file

@ -25,8 +25,6 @@ export const MassTableRow = ({
}: MassTableRowProps) => { }: MassTableRowProps) => {
const [symbol, setSymbol] = useState('') const [symbol, setSymbol] = useState('')
const time = useTime(date) const time = useTime(date)
//const compactDate = useCompactDate(date)
//const day = useShortDayName(date)
const day = new Date(date).toLocaleDateString("de-DE", {weekday: 'long'}) const day = new Date(date).toLocaleDateString("de-DE", {weekday: 'long'})
return ( return (
@ -47,7 +45,7 @@ export const MassTableRow = ({
</span> </span>
{!cancelled && type === 'FAMILY' && ( {!cancelled && type === 'FAMILY' && (
<Image src={family} width={18} height={18} alt={'Familien Messe'} /> <Image src={family} width={18} height={18} alt={'Familiengottesdienst'} />
)} )}
{!cancelled && type === 'WORD' && ( {!cancelled && type === 'WORD' && (

View file

@ -52,9 +52,12 @@ export const Worship = ({ worship }: WorshipPageProps) => {
</EventExcerptRow> </EventExcerptRow>
<EventExcerptRow label={"Wo:"}> <EventExcerptRow label={"Wo:"}>
{ typeof worship.location == "object" && { typeof worship.location == "object" &&
<TextDiv text={`${worship.location.name}\n${worship.location.address}\n${time} Uhr`} /> <TextDiv text={`${worship.location.name}\n${worship.location.address}`} />
} }
</EventExcerptRow> </EventExcerptRow>
<EventExcerptRow label={"Wann:"}>
{time} Uhr
</EventExcerptRow>
{ worship.celebrant && { worship.celebrant &&
<EventExcerptRow label={"Zelebrant:"}> <EventExcerptRow label={"Zelebrant:"}>
{worship.celebrant} {worship.celebrant}

View file

@ -7,7 +7,7 @@ import { EventRowProps } from '@/components/EventRow/EventRow'
export const transformCategory = (category: "MASS" | "FAMILY" | "WORD" | "LANGUAGE" | "OTHER"): string => { export const transformCategory = (category: "MASS" | "FAMILY" | "WORD" | "LANGUAGE" | "OTHER"): string => {
const type = { const type = {
'MASS': 'Eucharistiefeier', 'MASS': 'Eucharistiefeier',
'FAMILY': 'Familienmesse', 'FAMILY': 'Familiengottesdienst',
'WORD': 'Wort-Gottes-Feier', 'WORD': 'Wort-Gottes-Feier',
'LANGUAGE': 'Eucharistiefeier in Fremdsprache', 'LANGUAGE': 'Eucharistiefeier in Fremdsprache',
'OTHER': 'Gottesdienst', 'OTHER': 'Gottesdienst',