Skip to content

Commit

Permalink
Use React.FC for PanelStack2 renderPanel prop typing
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Nov 8, 2023
1 parent 49f0228 commit e0b8098
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: React.FC<PanelProps<P>>;

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

0 comments on commit e0b8098

Please sign in to comment.