tweak labels of layer buttons

This commit is contained in:
Mateusz Konieczny 2022-12-06 11:23:10 +01:00
parent b17b7922b6
commit f181daa900
9 changed files with 12 additions and 12 deletions

View File

@ -145,7 +145,7 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
disabled={true}
/>
<button className="map-switcher-inline btn btn-outline btn-outline-dark" onClick={floodSwitchOnClick}>
{(flood === 'enabled')? 'Click to hide overlay' : 'Click to see the data mapped'}
{(flood === 'enabled')? 'Click to hide layer' : 'Click to see the data mapped'}
</button>
<LogicalDataEntry
title="Is the building in a Housing Zone?"
@ -154,7 +154,7 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
disabled={true}
/>
<button className="map-switcher-inline btn btn-outline btn-outline-dark" onClick={housingSwitchOnClick}>
{(housing === 'enabled')? 'Click to hide overlay' : 'Click to see the data mapped'}
{(housing === 'enabled')? 'Click to hide layer' : 'Click to see the data mapped'}
</button>
<LogicalDataEntry
title="Is the building in a Creative Enterprise Zone?"
@ -163,7 +163,7 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
disabled={true}
/>
<button className="map-switcher-inline btn btn-outline btn-outline-dark" onClick={creativeSwitchOnClick}>
{(creative === 'enabled')? 'Click to hide overlay' : 'Click to see the data mapped'}
{(creative === 'enabled')? 'Click to hide layer' : 'Click to see the data mapped'}
</button>
<LogicalDataEntry
title="Is the building within a Protected Vista?"
@ -172,7 +172,7 @@ const PlanningView: React.FunctionComponent<CategoryViewProps> = (props) => {
disabled={true}
/>
<button className="map-switcher-inline btn btn-outline btn-outline-dark" onClick={vistaSwitchOnClick}>
{(vista === 'enabled')? 'Click to hide overlay' : 'Click to see the data mapped'}
{(vista === 'enabled')? 'Click to hide layer' : 'Click to see the data mapped'}
</button>
{/*
<DataEntry

View File

@ -11,7 +11,7 @@ const BoroughSwitcher: React.FC<BoroughSwitcherProps> = (props) => (
<form className={`borough-switcher ${props.currentDisplay}`} onSubmit={props.onSubmit}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(props.currentDisplay === 'enabled')? 'Switch off Borough overlay' : 'Switch on Borough overlay'}
{(props.currentDisplay === 'enabled')? 'Switch off Borough Boundaries' : 'Switch on Borough Boundaries'}
</button>
</form>
);

View File

@ -11,7 +11,7 @@ const ConservationAreaSwitcherProps: React.FC<ConservationAreaSwitcherProps> = (
<form className={`conservation-switcher ${props.currentDisplay}`} onSubmit={props.onSubmit}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(props.currentDisplay === 'enabled')? 'Switch off Conservation Area overlay' : 'Switch on Conservation Area overlay'}
{(props.currentDisplay === 'enabled')? 'Switch off Conservation Areas' : 'Switch on Conservation Areas'}
</button>
</form>
);

View File

@ -12,7 +12,7 @@ const CreativeSwitcherProps: React.FC<CreativeSwitcherProps> = (props) => {
<form className={`creative-switcher ${creative}`} onSubmit={creativeSwitch}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(creative === 'enabled')? 'Switch off Creative Enterprise Zones overlay' : 'Switch on Creative Enterprise Zones overlay'}
{(creative === 'enabled')? 'Switch off Creative Enterprise Zones' : 'Switch on Creative Enterprise Zones'}
</button>
</form>
);

View File

@ -11,7 +11,7 @@ const DataLayerSwitcher: React.FC<DataLayerSwitcherProps> = (props) => (
<form className={`data-switcher ${props.currentDisplay}`} onSubmit={props.onSubmit}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(props.currentDisplay === 'enabled')? 'Switch off layer listing' : 'Switch on layer listing'}
{(props.currentDisplay === 'enabled')? 'Hide layer options' : 'Show layer options'}
</button>
</form>
);

View File

@ -12,7 +12,7 @@ const FloodSwitcherProps: React.FC<FloodSwitcherProps> = (props) => {
<form className={`flood-switcher ${flood}`} onSubmit={floodSwitch}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(flood === 'enabled')? 'Switch off Flood Zone overlay' : 'Switch on Flood Zone overlay'}
{(flood === 'enabled')? 'Switch off Flood Zones' : 'Switch on Flood Zones'}
</button>
</form>
);

View File

@ -11,7 +11,7 @@ const HistoricDataSwitcherProps: React.FC<HistoricDataSwitcherProps> = (props) =
<form className={`historic-data-switcher ${props.currentDisplay}`} onSubmit={props.onSubmit}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(props.currentDisplay === 'enabled')? 'Switch off the OS 1890s Historical Map overlay' : 'Switch on the OS 1890s Historical Map overlay'}
{(props.currentDisplay === 'enabled')? 'Switch off the OS 1890s Historical Map' : 'Switch on the OS 1890s Historical Map'}
</button>
</form>
);

View File

@ -12,7 +12,7 @@ const HousingSwitcherProps: React.FC<HousingSwitcherProps> = (props) => {
<form className={`housing-switcher ${housing}`} onSubmit={housingSwitch}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(housing === 'enabled')? 'Switch off Housing Zones overlay' : 'Switch on Housing Zones overlay'}
{(housing === 'enabled')? 'Switch off Housing Zones' : 'Switch on Housing Zones'}
</button>
</form>
);

View File

@ -12,7 +12,7 @@ const VistaSwitcherProps: React.FC<VistaSwitcherProps> = (props) => {
<form className={`vista-switcher ${vista}`} onSubmit={vistaSwitch}>
<button className="btn btn-outline btn-outline-dark"
type="submit">
{(vista === 'enabled')? 'Switch off Protected Vistas overlay' : 'Switch on Protected Vistas overlay'}
{(vista === 'enabled')? 'Switch off Protected Vistas' : 'Switch on Protected Vistas'}
</button>
</form>
);