diff --git a/apps/nowcasting-app/components/map/sitesMap.tsx b/apps/nowcasting-app/components/map/sitesMap.tsx index 390d62de..7358574d 100644 --- a/apps/nowcasting-app/components/map/sitesMap.tsx +++ b/apps/nowcasting-app/components/map/sitesMap.tsx @@ -23,7 +23,6 @@ import { import { theme } from "../../tailwind.config"; import { Feature, FeatureCollection } from "geojson"; import Slider from "./sitesMapFeatures/sitesZoomSlider"; -import SitesLegend from "./sitesMapFeatures/sitesLegend"; import { safelyUpdateMapData } from "../helpers/mapUtils"; import dynamic from "next/dynamic"; @@ -523,7 +522,7 @@ const SitesMap: React.FC = ({ )} title={VIEWS.SOLAR_SITES} > - + {/**/} )} diff --git a/apps/nowcasting-app/components/map/types.ts b/apps/nowcasting-app/components/map/types.ts index c08407b8..355c7de6 100644 --- a/apps/nowcasting-app/components/map/types.ts +++ b/apps/nowcasting-app/components/map/types.ts @@ -1,3 +1,5 @@ +import { ReactNode } from "react"; + export enum ActiveUnit { MW = "MW", percentage = "%", @@ -12,7 +14,7 @@ export enum SelectedData { } export interface IMap { - children: React.ReactNode; + children?: ReactNode; loadDataOverlay: any; controlOverlay: any; bearing?: number;