Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com>
  • Loading branch information
dariaterekhova-actionengine committed May 11, 2022
1 parent 2f263c8 commit 9227dae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/map/coordinate-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {StyledLayerName} from './layer-hover-info';
const DECIMAL = 6;
const DECIMAL_Z = 1;

interface CoordinateInfoProps {
export interface CoordinateInfoProps {
coordinate: number[];
zoom: number;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/map/layer-selector-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import MapLayerSelector from '../common/map-layer-selector';
import MapControlTooltipFactory from './map-control-tooltip';
import MapControlPanelFactory from './map-control-panel';
import {Layer} from 'layers';
import {MapControls} from 'reducers';
import {MapControl, MapControls} from 'reducers';

LayerSelectorPanelFactory.deps = [MapControlTooltipFactory, MapControlPanelFactory];

Expand Down Expand Up @@ -55,7 +55,7 @@ function LayerSelectorPanelFactory(
mapControls,
readOnly
}) => {
const visibleLayers = mapControls?.visibleLayers || {};
const visibleLayers = mapControls?.visibleLayers || {} as MapControl;
const {active: isActive, show, disableClose} = visibleLayers || {};

const legendLayers = useMemo(
Expand Down
4 changes: 2 additions & 2 deletions src/components/map/map-legend-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Tippy from '@tippyjs/react/headless';
import TippyTooltip from 'components/common/tippy-tooltip';
import {createPortal} from 'react-dom';
import {DIMENSIONS} from 'constants/default-settings';
import {MapControls} from 'reducers';
import {MapControl, MapControls} from 'reducers';
import {Layer} from 'layers';

MapLegendPanelFactory.deps = [MapControlPanelFactory, MapLegendFactory];
Expand Down Expand Up @@ -72,7 +72,7 @@ function MapLegendPanelFactory(MapControlPanel, MapLegend) {
actionIcons = defaultActionIcons,
mapHeight
}) => {
const mapLegend = mapControls?.mapLegend || {};
const mapLegend = mapControls?.mapLegend || {} as MapControl;
const {active: isPinned} = mapLegend || {};

const onClick = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/map/split-map-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {MapControlButton} from 'components/common/styled-components';
import {Delete, Split} from 'components/common/icons';
import {FormattedMessage} from '../../localization';
import TippyTooltip from '../common/tippy-tooltip';
import {MapControls} from 'reducers';
import {MapControl, MapControls} from 'reducers';

SplitMapButtonFactory.deps = [];

Expand Down Expand Up @@ -57,7 +57,7 @@ function SplitMapButtonFactory() {
mapControls,
readOnly
}) => {
const splitMap = mapControls?.splitMap || {};
const splitMap = mapControls?.splitMap || {} as MapControl;
const onClick = useCallback(
event => {
event.preventDefault();
Expand Down

0 comments on commit 9227dae

Please sign in to comment.