Skip to content

Commit

Permalink
Follow React.FC return type for renderPanel typings
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Nov 7, 2023
1 parent 3e28c88 commit b9f25ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/panel-stack2/panelTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface Panel<P> {
/**
* The renderer for this panel.
*/
renderPanel: (props: PanelProps<P>) => JSX.Element | null;
renderPanel: (props: PanelProps<P>) => ReturnType<React.FC<PanelProps<P>>>;

/**
* HTML title to be passed to the <Text> component
Expand Down

0 comments on commit b9f25ad

Please sign in to comment.