From b3bb92d1161f2b317065ae8004d8e900dfd2f668 Mon Sep 17 00:00:00 2001 From: seniorliketocode Date: Mon, 23 Dec 2024 17:05:49 +0530 Subject: [PATCH] fix(CardHeader): add forwardRef to CardHeader component --- src/base/CardHeader/CardHeader.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/base/CardHeader/CardHeader.tsx b/src/base/CardHeader/CardHeader.tsx index f1e24f4b..579c557f 100644 --- a/src/base/CardHeader/CardHeader.tsx +++ b/src/base/CardHeader/CardHeader.tsx @@ -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 ; -} +const CardHeader = React.forwardRef((props, ref) => { + return ; +}); export default CardHeader;