Skip to content

Commit

Permalink
fix(Tearsheet): changed actions prop to optional (carbon-design-syste…
Browse files Browse the repository at this point in the history
  • Loading branch information
devadula-nandan authored Sep 7, 2024
1 parent 602f85d commit 068a7df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface TearsheetProps extends PropsWithChildren {
*
* See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
*/
actions: ButtonProps<'button'>[];
actions?: ButtonProps<'button'>[];

/**
* The aria-label for the tearsheet, which is optional.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface TearsheetNarrowBaseProps extends PropsWithChildren {
*
* See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
*/
actions?: ButtonProps[];
actions?: ButtonProps<'button'>[];

/**
* The aria-label for the tearsheet, which is optional.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const componentName = 'TearsheetShell';
const maxDepth = 3;

interface TearsheetShellProps extends PropsWithChildren {
actions?: ButtonProps<any>[];
actions?: ButtonProps<'button'>[];

ariaLabel?: string;

Expand Down

0 comments on commit 068a7df

Please sign in to comment.