Skip to content

Commit

Permalink
fixing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cphelefu committed Nov 16, 2023
1 parent 88716da commit 6ad36d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Button } from '@mui/material';
import { Box, Typography, ExpandIcon, RemoveCircleOutlineIcon, AddCircleOutlineIcon, ButtonGroup } from '@/ui';
import { getSxClasses } from '../layers-style';
import { useLayerStoreActions, useLayersDisplayState } from '@/core/stores/store-interface-and-intial-values/layer-state';
import { TypeLayersViewDisplayState } from '../types';

export function LayersActions(): JSX.Element {
const { t } = useTranslation<string>();
Expand All @@ -15,7 +16,7 @@ export function LayersActions(): JSX.Element {
const displayState = useLayersDisplayState();
const { setDisplayState } = useLayerStoreActions();

const handleSetDisplayState = function (newState: string) {
const handleSetDisplayState = function (newState: TypeLayersViewDisplayState) {

Check warning on line 19 in packages/geoview-core/src/core/components/layers/left-panel/layers-actions.tsx

View workflow job for this annotation

GitHub Actions / Build demo files / build-geoview

Unexpected unnamed function
setDisplayState(newState);
};

Expand Down
2 changes: 2 additions & 0 deletions packages/geoview-core/src/core/components/layers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export interface TypeLegendItemDetailsProps {

/// //////////////////////////////////////////////////

export type TypeLayersViewDisplayState = 'remove' | 'add' | 'order' | 'view';

export type TypeLegendLayerIcon = {
iconType?: string;
iconImg?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
import { useStore } from 'zustand';
import _ from 'lodash';
import { useGeoViewStore } from '../stores-managers';
import { TypeLegendLayer } from '../../components/layers/types';
import { TypeLayersViewDisplayState, TypeLegendLayer } from '../../components/layers/types';
import { TypeGetStore, TypeSetStore } from '../geoview-store';

type TypeLayersViewDisplayState = 'remove' | 'add' | 'order' | 'view';

export interface ILayerState {
selectedItem?: TypeLegendLayer;
selectedIsVisible: boolean;
Expand Down

0 comments on commit 6ad36d0

Please sign in to comment.