Skip to content

Commit 03d8ed9

Browse files
committed
refactor: naming of the properties in the config
1 parent 08d0a76 commit 03d8ed9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

vis/js/templates/Geomap/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ export const CONFIG: Config = {
2020
},
2121
FEATURES_DISABLING: {
2222
isShowLayersSwitcher: true,
23-
isShowZoomControls: true,
23+
isShowZoomControl: true,
2424
},
2525
};

vis/js/templates/Geomap/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import { LayersSwitcher } from "./LayersSwitcher";
99
import { Pins } from "./Pins";
1010

1111
const { MAP, ZOOM_CONTROL, FEATURES_DISABLING } = CONFIG;
12-
const { isShowLayersSwitcher, isShowZoomControls } = FEATURES_DISABLING;
12+
const { isShowLayersSwitcher, isShowZoomControl } = FEATURES_DISABLING;
1313

1414
export const Geomap: FC = () => (
1515
<HeightContainer>
1616
<MapContainer {...MAP} className="geomap_container">
17-
{isShowZoomControls && <ZoomControl {...ZOOM_CONTROL} />}
17+
{isShowZoomControl && <ZoomControl {...ZOOM_CONTROL} />}
1818
{isShowLayersSwitcher && <LayersSwitcher />}
1919
<Pins />
2020
</MapContainer>

vis/js/templates/Geomap/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type ZoomControlConfig = Control.ZoomOptions;
1919

2020
interface FeaturesDisablingConfig {
2121
isShowLayersSwitcher: boolean;
22-
isShowZoomControls: boolean;
22+
isShowZoomControl: boolean;
2323
}
2424

2525
export interface Config {

0 commit comments

Comments
 (0)