Skip to content

Commit

Permalink
[charts] Fix legend slot typing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Sep 18, 2024
1 parent 2889da1 commit 90ae9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x-charts/src/ChartsLegend/ChartsLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export interface ChartsLegendSlots {
* Custom rendering of the legend.
* @default DefaultChartsLegend
*/
legend?: React.JSXElementConstructor<ChartsLegendPropsBase>;
legend?: React.JSXElementConstructor<LegendRendererProps>;
}

export interface ChartsLegendSlotProps {
legend?: Partial<ChartsLegendPropsBase>;
legend?: Partial<LegendRendererProps>;
}

export interface ChartsLegendProps extends ChartsLegendPropsBase {
Expand Down

0 comments on commit 90ae9e9

Please sign in to comment.