Skip to content

Commit

Permalink
Moved the className prop to the MarginalSubComponentProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Jun 10, 2021
1 parent 21a8c7c commit 6bce1b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/card/card-footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const defaultProps = {
};

/**
* @param { import('../types').FooterProps & { className: string } } props
* @param { import('../types').FooterProps } props
*/
export function CardFooter( props ) {
const { className, isShady, ...additionalProps } = props;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/card/card-header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const defaultProps = {
};

/**
* @param { import('../types').HeaderProps & { className: string } } props
* @param { import('../types').HeaderProps } props
*/
export function CardHeader( props ) {
const { className, isShady, ...additionalProps } = props;
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/card/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type MarginalSubComponentProps = BaseSubComponentProps & {
* @default false
*/
isBorderless?: boolean;
className?: string;
};

export type HeaderProps = MarginalSubComponentProps;
Expand Down

0 comments on commit 6bce1b3

Please sign in to comment.