Skip to content

Commit

Permalink
fix: typescript issue in banner when customizing buttons (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericledonge authored Dec 10, 2021
1 parent e509bf8 commit bd0bae2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ type Props = $RemoveChildren<typeof Surface> & {
*
* To customize button you can pass other props that button component takes.
*/
actions: Array<{
label: string;
onPress: () => void;
}>;
actions: Array<
{
label: string;
} & Omit<React.ComponentProps<typeof Button>, 'children'>
>;
/**
* Style of banner's inner content.
* Use this prop to apply custom width for wide layouts.
Expand Down

0 comments on commit bd0bae2

Please sign in to comment.