From c80bb56e6ff29d610248c26ca7d4b7904b9f4345 Mon Sep 17 00:00:00 2001 From: Ihor Dykhta Date: Sat, 4 Jan 2025 22:08:50 +0200 Subject: [PATCH] fix lint Signed-off-by: Ihor Dykhta --- src/components/src/map/map-legend-panel.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/src/map/map-legend-panel.tsx b/src/components/src/map/map-legend-panel.tsx index 72083da8d7..2d5e8775e3 100644 --- a/src/components/src/map/map-legend-panel.tsx +++ b/src/components/src/map/map-legend-panel.tsx @@ -282,11 +282,14 @@ export type MapLegendPanelProps = { settings: MapLegendControlSettings; isSidePanelShown: boolean; }; + +type MapLegendPanelComponentType = React.FC; + function MapLegendPanelFactory( MapControlTooltip: ReturnType, MapControlPanel: ReturnType, MapLegend: ReturnType -): React.FC { +): MapLegendPanelComponentType { const defaultActionIcons = { legend: Legend }; @@ -394,7 +397,7 @@ function MapLegendPanelFactory( ); MapLegendPanel.displayName = 'MapLegendPanel'; - return withTheme(MapLegendPanel) as React.FC; + return withTheme(MapLegendPanel as MapLegendPanelComponentType) as MapLegendPanelComponentType; } export default MapLegendPanelFactory;