Skip to content

Commit

Permalink
fix(DialogContentText): add forwardRef to DialogContentText component
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn-32 committed Dec 23, 2024
1 parent 836b4e7 commit 0b88dcc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/base/DialogContentText/DialogContentText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import {
DialogContentText as MuiDialogContentText,
type DialogContentTextProps as MuiDialogContentTextProps
} from '@mui/material';
import React from 'react';

export function DialogContentText(props: MuiDialogContentTextProps): JSX.Element {
return <MuiDialogContentText {...props} />;
}
const DialogContentText = React.forwardRef<HTMLDivElement, MuiDialogContentTextProps>(
(props, ref) => {
return <MuiDialogContentText {...props} ref={ref} />;
}
);

export default DialogContentText;

0 comments on commit 0b88dcc

Please sign in to comment.