From d77a29ecd796cc9dc20fd79dcdd413e193fc6402 Mon Sep 17 00:00:00 2001 From: Benno Tielen Date: Sat, 11 Apr 2026 15:33:51 +0200 Subject: [PATCH] fix: icons --- src/components/ChurchIcon/ChurchIcon.tsx | 37 +++++++++++-------- .../chemnitz/St.Antonius,Falkenberg.svg | 2 +- .../ChurchIcon/chemnitz/St.Joseph.svg | 2 +- src/pageComponents/Worship/Worship.tsx | 2 +- src/utils/church.ts | 6 +-- 5 files changed, 28 insertions(+), 21 deletions(-) diff --git a/src/components/ChurchIcon/ChurchIcon.tsx b/src/components/ChurchIcon/ChurchIcon.tsx index 1d6d200..0cbf659 100644 --- a/src/components/ChurchIcon/ChurchIcon.tsx +++ b/src/components/ChurchIcon/ChurchIcon.tsx @@ -10,7 +10,7 @@ export type Church = | 'antonius' | 'marien' | 'maria' - | 'antoniusFalkenberg' + | 'antoniusFrankenberg' | 'johannesNepomuk' type ChurchIconProps = { @@ -59,15 +59,15 @@ export const ChurchIcon = ({church, style, stroke, color}: ChurchIconProps) => { if (church === 'joseph') { return ( - + - - + ) @@ -82,7 +82,8 @@ export const ChurchIcon = ({church, style, stroke, color}: ChurchIconProps) => { strokeWidth={stroke} strokeMiterlimit={10} > - + ) @@ -97,7 +98,8 @@ export const ChurchIcon = ({church, style, stroke, color}: ChurchIconProps) => { strokeWidth={stroke} strokeMiterlimit={10} > - + @@ -140,19 +142,21 @@ export const ChurchIcon = ({church, style, stroke, color}: ChurchIconProps) => { ) } - if (church === 'antoniusFalkenberg') { + if (church === 'antoniusFrankenberg') { return ( - + - - - - + + + + + + ) @@ -167,9 +171,12 @@ export const ChurchIcon = ({church, style, stroke, color}: ChurchIconProps) => { strokeWidth={stroke} strokeMiterlimit={10} > - - - + + + ) diff --git a/src/components/ChurchIcon/chemnitz/St.Antonius,Falkenberg.svg b/src/components/ChurchIcon/chemnitz/St.Antonius,Falkenberg.svg index b0195aa..5e5b8ff 100644 --- a/src/components/ChurchIcon/chemnitz/St.Antonius,Falkenberg.svg +++ b/src/components/ChurchIcon/chemnitz/St.Antonius,Falkenberg.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/ChurchIcon/chemnitz/St.Joseph.svg b/src/components/ChurchIcon/chemnitz/St.Joseph.svg index dc3faeb..35c12e8 100644 --- a/src/components/ChurchIcon/chemnitz/St.Joseph.svg +++ b/src/components/ChurchIcon/chemnitz/St.Joseph.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/pageComponents/Worship/Worship.tsx b/src/pageComponents/Worship/Worship.tsx index 1caf9b6..f828ccc 100644 --- a/src/pageComponents/Worship/Worship.tsx +++ b/src/pageComponents/Worship/Worship.tsx @@ -71,7 +71,7 @@ export const Worship = ({ worship }: WorshipPageProps) => {
diff --git a/src/utils/church.ts b/src/utils/church.ts index 5f3cbad..0b9a88d 100644 --- a/src/utils/church.ts +++ b/src/utils/church.ts @@ -2,7 +2,7 @@ * Convert string to a church * @param s */ -export const church = (s: string) : "anna" | "christophorus" | "richard" | "eduard" | "clara" | "joseph" | "franziskus" | "antonius" | "marien" | "maria" | "antoniusFalkenberg" | "johannesNepomuk" => { +export const church = (s: string) : "anna" | "christophorus" | "richard" | "eduard" | "clara" | "joseph" | "franziskus" | "antonius" | "marien" | "maria" | "antoniusFrankenberg" | "johannesNepomuk" => { const lower = s.toLowerCase() @@ -37,8 +37,8 @@ export const church = (s: string) : "anna" | "christophorus" | "richard" | "edua return "franziskus" } - if (lower.includes("falkenberg")) { - return "antoniusFalkenberg" + if (lower.includes("frankenberg")) { + return "antoniusFrankenberg" } if (lower.includes("antonius")) {