Skip to content

Commit

Permalink
fix(CardHeader): add forwardRef to CardHeader component
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn-32 committed Dec 23, 2024
1 parent 8feacb5 commit b3bb92d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/base/CardHeader/CardHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { CardHeader as MuiCardHeader, CardHeaderProps as MuiCardHeaderProps } from '@mui/material';
import React from 'react';

export function CardHeader(props: MuiCardHeaderProps): JSX.Element {
return <MuiCardHeader {...props} />;
}
const CardHeader = React.forwardRef<HTMLDivElement, MuiCardHeaderProps>((props, ref) => {
return <MuiCardHeader {...props} ref={ref} />;
});

export default CardHeader;

0 comments on commit b3bb92d

Please sign in to comment.