From 85e5e1ba658f308ab0d557363be012e14022cddd Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Tue, 26 Jul 2022 09:03:37 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20sidebar,=20use=20upperFirst=20to=20retain?= =?UTF-8?q?=20=C3=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/MapPage/LayerSidebar.tsx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/frontend/src/pages/MapPage/LayerSidebar.tsx b/frontend/src/pages/MapPage/LayerSidebar.tsx index 0e4861f..faefd78 100644 --- a/frontend/src/pages/MapPage/LayerSidebar.tsx +++ b/frontend/src/pages/MapPage/LayerSidebar.tsx @@ -134,14 +134,7 @@ function LayerSidebar({ /> - ) : ( - - - - ) : - attribute.endsWith('zone') ? ( + ) : attribute.endsWith('zone') ? ( <> @@ -151,11 +144,11 @@ function LayerSidebar({ ( <> - {_.startCase(t("general.urban"))} + {_.upperFirst(t("general.urban"))} - {_.startCase(t("general.rural"))} + {_.upperFirst(t("general.rural"))} @@ -179,11 +172,11 @@ function LayerSidebar({ {showEvents && ( <> - {_.startCase(t('general.urban'))} + {_.upperFirst(t('general.urban'))} - {_.startCase(t('general.rural'))} + {_.upperFirst(t('general.rural'))}