diff --git a/src/containers/legend/index.tsx b/src/containers/legend/index.tsx index e76c213ac..1d2f660eb 100644 --- a/src/containers/legend/index.tsx +++ b/src/containers/legend/index.tsx @@ -1,17 +1,17 @@ import cn from 'lib/classnames'; -type Item = { +export type Item = { showValue?: boolean; highlightValue?: boolean; - color: string; - label: string; + color?: string; + label?: string; labelFormatted?: string; value?: number; unit?: string; valueFormatted?: string; }; -type LegendTypes = { +export type LegendTypes = { title?: string; subtitle?: string; items: Item[]; diff --git a/src/containers/locations-list/index.tsx b/src/containers/locations-list/index.tsx index 1c970ce70..50451ca1c 100644 --- a/src/containers/locations-list/index.tsx +++ b/src/containers/locations-list/index.tsx @@ -18,11 +18,8 @@ import { useSearch } from 'hooks/search'; import { useLocation, useLocations } from 'containers/datasets/locations/hooks'; import { Location, LocationTypes } from 'containers/datasets/locations/types'; -// import HighlightedPlacesMobile from 'containers/locations-list/mobile/highlighted-places'; -// import HighlightedPlaces from 'components/highlighted-places'; import Icon from 'components/ui/icon'; -// import { Media } from 'components/media-query'; import { breakpoints } from 'styles/styles.config'; import CLOSE_SVG from 'svgs/ui/close.svg?sprite';