Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta committed Jan 4, 2025
1 parent 3724486 commit c80bb56
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/src/map/map-legend-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,14 @@ export type MapLegendPanelProps = {
settings: MapLegendControlSettings;
isSidePanelShown: boolean;
};

type MapLegendPanelComponentType = React.FC<MapLegendPanelProps>;

function MapLegendPanelFactory(
MapControlTooltip: ReturnType<typeof MapControlTooltipFactory>,
MapControlPanel: ReturnType<typeof MapControlPanelFactory>,
MapLegend: ReturnType<typeof MapLegendFactory>
): React.FC<MapLegendPanelProps> {
): MapLegendPanelComponentType {
const defaultActionIcons = {
legend: Legend
};
Expand Down Expand Up @@ -394,7 +397,7 @@ function MapLegendPanelFactory(
);

MapLegendPanel.displayName = 'MapLegendPanel';
return withTheme(MapLegendPanel) as React.FC<MapLegendPanelProps>;
return withTheme(MapLegendPanel as MapLegendPanelComponentType) as MapLegendPanelComponentType;
}

export default MapLegendPanelFactory;

0 comments on commit c80bb56

Please sign in to comment.