Fix sidebar, use upperFirst to retain ß

This commit is contained in:
Paul Bienkowski 2022-07-26 09:03:37 +02:00
parent f158414f24
commit 85e5e1ba65

View file

@ -134,14 +134,7 @@ function LayerSidebar({
/>
</List.Item>
</>
) : (
<List.Item>
<DiscreteColorMapLegend
map={colorByDistance("distance_overtaker")[3].slice(2)}
/>
</List.Item>
) :
attribute.endsWith('zone') ? (
) : attribute.endsWith('zone') ? (
<>
<List.Item>
<Label size="small" style={{background: "blue",color:"white"}}>{t("general.urban")} (1.5&nbsp;m)</Label>
@ -151,11 +144,11 @@ function LayerSidebar({
(
<>
<List.Item>
<List.Header>{_.startCase(t("general.urban"))}</List.Header>
<List.Header>{_.upperFirst(t("general.urban"))}</List.Header>
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][5].slice(2)} />
</List.Item>
<List.Item>
<List.Header>{_.startCase(t("general.rural"))}</List.Header>
<List.Header>{_.upperFirst(t("general.rural"))}</List.Header>
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][3].slice(2)} />
</List.Item>
</>
@ -179,11 +172,11 @@ function LayerSidebar({
{showEvents && (
<>
<List.Item>
<List.Header>{_.startCase(t('general.urban'))}</List.Header>
<List.Header>{_.upperFirst(t('general.urban'))}</List.Header>
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][5].slice(2)} />
</List.Item>
<List.Item>
<List.Header>{_.startCase(t('general.rural'))}</List.Header>
<List.Header>{_.upperFirst(t('general.rural'))}</List.Header>
<DiscreteColorMapLegend map={colorByDistance('distance_overtaker')[3][3].slice(2)} />
</List.Item>
</>