Skip to content

Commit

Permalink
fix(bug): revert some component which doesn't support forwardRef
Browse files Browse the repository at this point in the history
Signed-off-by: seniorliketocode <[email protected]>
  • Loading branch information
capricorn-32 committed Dec 25, 2024
1 parent 95fb0c6 commit d547a36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 3 additions & 6 deletions src/base/ListItemText/ListItemText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import {
ListItemText as MuiListItemText,
ListItemTextProps as MuiListItemTextProps
} from '@mui/material';
import React from 'react';

const ListItemText = React.forwardRef<HTMLDivElement, MuiListItemTextProps>((props, ref) => {
return <MuiListItemText {...props} ref={ref} />;
});

export { ListItemText };
export function ListItemText(props: MuiListItemTextProps): JSX.Element {
return <MuiListItemText {...props} />;
}
7 changes: 3 additions & 4 deletions src/base/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Tooltip as MuiTooltip, type TooltipProps as MuiTooltipProps } from '@mui/material';
import React from 'react';

const Tooltip = React.forwardRef<HTMLDivElement, MuiTooltipProps>((props, ref) => {
return <MuiTooltip {...props} ref={ref} />;
});
export function Tooltip(props: MuiTooltipProps): JSX.Element {
return <MuiTooltip {...props} />;
}

export default Tooltip;

0 comments on commit d547a36

Please sign in to comment.