use more clear naming variant

This commit is contained in:
Mateusz Konieczny 2023-02-07 13:01:09 +01:00
parent 83847d75b9
commit 8f7eb6bf81
4 changed files with 5 additions and 5 deletions

View File

@ -605,7 +605,7 @@
<PolygonSymbolizer fill="#f7ec25" /> <PolygonSymbolizer fill="#f7ec25" />
</Rule> </Rule>
<Rule> <Rule>
<Filter>[is_domestic] = "mixed"</Filter> <Filter>[is_domestic] = "mixed domestic/non-domestic"</Filter>
<PolygonSymbolizer fill="#fc9b2a" /> <PolygonSymbolizer fill="#fc9b2a" />
</Rule> </Rule>
<Rule> <Rule>

View File

@ -55,7 +55,7 @@ const CommunityView: React.FunctionComponent<CategoryViewProps> = (props) => {
title={dataFields.is_domestic.title} title={dataFields.is_domestic.title}
slug="is_domestic" slug="is_domestic"
value={props.building.is_domestic} value={props.building.is_domestic}
options={["yes", "no", "mixed"]} options={["yes", "no", "mixed domestic/non-domestic"]}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onChange}
@ -73,7 +73,7 @@ const CommunityView: React.FunctionComponent<CategoryViewProps> = (props) => {
<button className={`map-switcher-inline ${props.mapColourScale == "is_domestic" ? "enabled-state" : "disabled-state"} btn btn-outline btn-outline-dark ${darkLightTheme}`} onClick={switchToIsDomesticMapStyle}> <button className={`map-switcher-inline ${props.mapColourScale == "is_domestic" ? "enabled-state" : "disabled-state"} btn btn-outline btn-outline-dark ${darkLightTheme}`} onClick={switchToIsDomesticMapStyle}>
{(props.mapColourScale == "is_domestic")? 'Showing domestic status for specific buildings' : 'Click to see domestic status for specific buildings mapped'} {(props.mapColourScale == "is_domestic")? 'Showing domestic status for specific buildings' : 'Click to see domestic status for specific buildings mapped'}
</button> </button>
{(props.building.is_domestic === "no" || props.building.is_domestic === "mixed") ? {(props.building.is_domestic === "no" || props.building.is_domestic === "mixed domestic/non-domestic") ?
<> <>
<UserOpinionEntry <UserOpinionEntry
slug='community_like' slug='community_like'

View File

@ -26,7 +26,7 @@ const UseView: React.FunctionComponent<CategoryViewProps> = (props) => {
title={dataFields.is_domestic.title} title={dataFields.is_domestic.title}
slug="is_domestic" slug="is_domestic"
value={props.building.is_domestic} value={props.building.is_domestic}
options={["yes", "no", "mixed"]} options={["yes", "no", "mixed domestic/non-domestic"]}
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onChange}

View File

@ -575,7 +575,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
category: Category.Team, category: Category.Team,
title: "Is the building a home/domestic building?", title: "Is the building a home/domestic building?",
tooltip: "", tooltip: "",
example: "mixed" example: "mixed domestic/non-domestic"
}, },
likes_total: { likes_total: {
category: Category.Community, category: Category.Community,