Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(box): add forwardRef to box component #859

Merged
merged 63 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
4db26b2
fix(box): add forwardRef to box component
capricorn-32 Dec 22, 2024
e7c9720
fix(Accordion): add forwardRef to Accordion component
capricorn-32 Dec 22, 2024
e534575
fix(AccordionActions): add forwardRef to AccordionActions component
capricorn-32 Dec 22, 2024
f40d859
fix(AccordionDetails): add forwardRef to AccordionDetails component
capricorn-32 Dec 22, 2024
f7dfca9
fix(AccordionSummary): add forwardRef to AccordionSummary component
capricorn-32 Dec 22, 2024
bcb1bd9
fix(AppBar): add forwardRef to AppBar component
capricorn-32 Dec 22, 2024
e83604b
fix(Avatar): add forwardRef to Avatar component
capricorn-32 Dec 22, 2024
038e9c3
fix(AvatarGroup): add forwardRef to AvatarGroup component
capricorn-32 Dec 22, 2024
690f733
fix(Backdrop): add forwardRef to Backdrop component
capricorn-32 Dec 22, 2024
4ef75f4
fix(Avatar): Component now imported default like other components
capricorn-32 Dec 22, 2024
9ec9901
fix(Badge): add forwardRef to Badge component
capricorn-32 Dec 22, 2024
265efd1
fix(ButtonGroup): add forwardRef to ButtonGroup component
capricorn-32 Dec 22, 2024
0b233ae
fix(Card): add forwardRef to Card component
capricorn-32 Dec 22, 2024
3194625
fix(CardActions): add forwardRef to CardActions component
capricorn-32 Dec 22, 2024
de1fc1e
fix(CardContent): add forwardRef to CardContent component
capricorn-32 Dec 23, 2024
93273e3
fix(CardHeader): add forwardRef to CardHeader component
capricorn-32 Dec 23, 2024
f65f38f
fix(CardMedia): add forwardRef to CardMedia component
capricorn-32 Dec 23, 2024
4335d71
fix(CheckBox): add forwardRef to CheckBox component
capricorn-32 Dec 23, 2024
b82a8b1
fix(CheckBox): typeError fixed
capricorn-32 Dec 23, 2024
0906425
fix(Chip): add forwardRef to Chip component
capricorn-32 Dec 23, 2024
680320f
fix(CircularProgress): add forwardRef to CircularProgress component
capricorn-32 Dec 23, 2024
af05e5f
fix(ClickAwayListener): add forwardRef to ClickAwayListener component
capricorn-32 Dec 23, 2024
b05c0e6
fix(Collapse): add forwardRef to Collapse component
capricorn-32 Dec 23, 2024
cd6304e
fix(Container): add forwardRef to Container component
capricorn-32 Dec 23, 2024
d62017b
fix(Dialog): add forwardRef to Dialog component
capricorn-32 Dec 23, 2024
6b4874a
fix(DialogActions): add forwardRef to DialogActions component
capricorn-32 Dec 23, 2024
100f0d9
fix(DialogContent): add forwardRef to DialogContent component
capricorn-32 Dec 23, 2024
87ba94b
fix(DialogContentText): add forwardRef to DialogContentText component
capricorn-32 Dec 23, 2024
fdbcbd6
fix(DialogContentTitle): add forwardRef to DialogTitle component
capricorn-32 Dec 23, 2024
42c83e0
fix(Drawer): add forwardRef to Drawer component
capricorn-32 Dec 23, 2024
5ab11ee
fix(FromControlLabel): add forwardRef to FromControlLabel component
capricorn-32 Dec 23, 2024
2db0534
fix(FormGroup): add forwardRef to FormGroup component
capricorn-32 Dec 25, 2024
a41d2c9
fix(Grow): add forwardRef to Grow component
capricorn-32 Dec 25, 2024
18b75cd
fix(Input): add forwardRef to Input component
capricorn-32 Dec 25, 2024
162b4c5
fix(Inputadornment): add forwardRef to Inputadornment component
capricorn-32 Dec 25, 2024
83a136e
fix(ListItem): add forwardRef to ListItem component
capricorn-32 Dec 25, 2024
aca1287
fix(ListItemAvatar): add forwardRef to ListItemAvatar component
capricorn-32 Dec 25, 2024
56d3c7f
fix(ListItemButton): add forwardRef to ListItemButton component
capricorn-32 Dec 25, 2024
5594081
fix(ListItemIcon): add forwardRef to ListItemIcon component
capricorn-32 Dec 25, 2024
0302533
fix(ListItemSecondaryAction): add forwardRef to ListItemSecondaryActi…
capricorn-32 Dec 25, 2024
fdc64e4
fix(ListItemText): add forwardRef to ListItemText component
capricorn-32 Dec 25, 2024
4a93854
fix(Menu): add forwardRef to Menu component
capricorn-32 Dec 25, 2024
37c7527
fix(OutlinedInput): add forwardRef OutlinedInput component
capricorn-32 Dec 25, 2024
2424cb7
Merge branch 'master' into fix/forwardRef
capricorn-32 Dec 25, 2024
85eab66
fix(Pagination): add forwardRef Pagination component
capricorn-32 Dec 25, 2024
01c575f
Merge branch 'fix/forwardRef' of github.com:capricorn-32/sistent into…
capricorn-32 Dec 25, 2024
e3b9b87
fix(Paper): add forwardRef Paper component
capricorn-32 Dec 25, 2024
c5add03
fix(Popper): add forwardRef Popper component
capricorn-32 Dec 25, 2024
891c885
fix(RadioGroup): add forwardRef RadioGroup component
capricorn-32 Dec 25, 2024
98ce6b2
fix(Select): add forwardRef Select component
capricorn-32 Dec 25, 2024
2fb5373
fix(Skeleton): add forwardRef Skeleton component
capricorn-32 Dec 25, 2024
bc3c4d0
fix(Slide): add forwardRef Slide component
capricorn-32 Dec 25, 2024
7f1ac9c
fix(ListItemButton): add forwardRef ListItemButton component
capricorn-32 Dec 25, 2024
43f0955
fix(stack): add forwardRef stack component
capricorn-32 Dec 25, 2024
ceee657
fix(Button): add forwardRef Button component
capricorn-32 Dec 25, 2024
6e055f3
fix(Tab): add forwardRef Tab component
capricorn-32 Dec 25, 2024
5f75b68
fix(Tabs): add forwardRef Tabs component
capricorn-32 Dec 25, 2024
f2f9a3d
fix(TextField): add forwardRef TextField component
capricorn-32 Dec 25, 2024
72bf79d
fix(ToggleButtonGroup): add forwardRef ToggleButtonGroup component
capricorn-32 Dec 25, 2024
7d392c8
fix(Toolbar): add forwardRef Toolbar component
capricorn-32 Dec 25, 2024
5315216
fix(Tooltip): add forwardRef Tooltip component
capricorn-32 Dec 25, 2024
95fb0c6
fix(Typography): add forwardRef Typography component
capricorn-32 Dec 25, 2024
d547a36
fix(bug): revert some component which doesn't support forwardRef
capricorn-32 Dec 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/base/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Accordion as MuiAccordion, type AccordionProps as MuiAccordionProps } from '@mui/material';
import React from 'react';

export function Accordion(props: MuiAccordionProps): JSX.Element {
return <MuiAccordion {...props} />;
}
const Accordion = React.forwardRef<HTMLDivElement, MuiAccordionProps>((props, ref) => {
return <MuiAccordion {...props} ref={ref} />;
});

export default Accordion;
10 changes: 7 additions & 3 deletions src/base/AccordionActions/AccordionActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import {
type AccordionActionsProps as MuiAccordionActionsProps
} from '@mui/material';

export function AccordionActions(props: MuiAccordionActionsProps): JSX.Element {
return <MuiAccordionActions {...props} />;
}
import React from 'react';

const AccordionActions = React.forwardRef<HTMLDivElement, MuiAccordionActionsProps>(
(props, ref) => {
return <MuiAccordionActions {...props} ref={ref} />;
}
);

export default AccordionActions;
10 changes: 7 additions & 3 deletions src/base/AccordionDetails/AccordionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import {
type AccordionDetailsProps as MuiAccordionDetailsProps
} from '@mui/material';

export function AccordionDetails(props: MuiAccordionDetailsProps): JSX.Element {
return <MuiAccordionDetails {...props} />;
}
import React from 'react';

const AccordionDetails = React.forwardRef<HTMLDivElement, MuiAccordionDetailsProps>(
(props, ref) => {
return <MuiAccordionDetails {...props} ref={ref} />;
}
);

export default AccordionDetails;
9 changes: 6 additions & 3 deletions src/base/AccordionSummary/AccordionSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import {
AccordionSummary as MuiAccordionSummary,
type AccordionSummaryProps as MuiAccordionSummaryProps
} from '@mui/material';
import React from 'react';

export function AccordionSummary(props: MuiAccordionSummaryProps): JSX.Element {
return <MuiAccordionSummary {...props} />;
}
const AccordionSummary = React.forwardRef<HTMLDivElement, MuiAccordionSummaryProps>(
(props, ref) => {
return <MuiAccordionSummary {...props} ref={ref} />;
}
);

export default AccordionSummary;
7 changes: 4 additions & 3 deletions src/base/AppBar/AppBar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { AppBar as MuiAppBar, type AppBarProps as MuiAppBarProps } from '@mui/material';
import React from 'react';

export function AppBar(props: MuiAppBarProps): JSX.Element {
return <MuiAppBar {...props} />;
}
const AppBar = React.forwardRef<HTMLDivElement, MuiAppBarProps>((props, ref) => {
return <MuiAppBar {...props} ref={ref} />;
});

export default AppBar;
7 changes: 4 additions & 3 deletions src/base/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Avatar as MuiAvatar, type AvatarProps as MuiAvatarProps } from '@mui/material';
import React from 'react';

export function Avatar(props: MuiAvatarProps): JSX.Element {
return <MuiAvatar {...props} />;
}
const Avatar = React.forwardRef<HTMLDivElement, MuiAvatarProps>((props, ref) => {
return <MuiAvatar {...props} ref={ref} />;
});

export default Avatar;
2 changes: 1 addition & 1 deletion src/base/Avatar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AvatarProps } from '@mui/material';
import { Avatar } from './Avatar';
import Avatar from './Avatar';

export { Avatar };
export type { AvatarProps };
7 changes: 4 additions & 3 deletions src/base/AvatarGroup/AvatarGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
AvatarGroup as MuiAvatarGroup,
type AvatarGroupProps as MuiAvatarGroupProps
} from '@mui/material';
import React from 'react';

export function AvatarGroup(props: MuiAvatarGroupProps): JSX.Element {
return <MuiAvatarGroup {...props} />;
}
const AvatarGroup = React.forwardRef<HTMLDivElement, MuiAvatarGroupProps>((props, ref) => {
return <MuiAvatarGroup {...props} ref={ref} />;
});

export default AvatarGroup;
7 changes: 4 additions & 3 deletions src/base/Backdrop/Backdrop.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Backdrop as MuiBackdrop, type BackdropProps as MuiBackdropProps } from '@mui/material';
import React from 'react';

export function Backdrop(props: MuiBackdropProps): JSX.Element {
return <MuiBackdrop {...props} />;
}
const Backdrop = React.forwardRef<HTMLDivElement, MuiBackdropProps>((props, ref) => {
return <MuiBackdrop {...props} ref={ref} />;
});

export default Backdrop;
7 changes: 4 additions & 3 deletions src/base/Badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Badge as MuiBadge, type BadgeProps as MuiBadgeProps } from '@mui/material';
import React from 'react';

export function Badge(props: MuiBadgeProps): JSX.Element {
return <MuiBadge {...props} />;
}
const Badge = React.forwardRef<HTMLDivElement, MuiBadgeProps>((props, ref) => {
return <MuiBadge {...props} ref={ref} />;
});

export default Badge;
7 changes: 4 additions & 3 deletions src/base/Box/Box.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Box as MuiBox, type BoxProps as MuiBoxProps } from '@mui/material';
import React from 'react';

export function Box(props: MuiBoxProps): JSX.Element {
return <MuiBox {...props} />;
}
const Box = React.forwardRef<HTMLDivElement, MuiBoxProps>((props, ref) => {
return <MuiBox {...props} ref={ref} />;
});

export default Box;
7 changes: 4 additions & 3 deletions src/base/ButtonGroup/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
ButtonGroup as MuiButtonGroup,
type ButtonGroupProps as MuiButtonGroupProps
} from '@mui/material';
import React from 'react';

export function ButtonGroup(props: MuiButtonGroupProps): JSX.Element {
return <MuiButtonGroup {...props} />;
}
const ButtonGroup = React.forwardRef<HTMLDivElement, MuiButtonGroupProps>((props, ref) => {
return <MuiButtonGroup {...props} ref={ref} />;
});

export default ButtonGroup;
7 changes: 4 additions & 3 deletions src/base/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Card as MuiCard, type CardProps as MuiCardProps } from '@mui/material';
import React from 'react';

export function Card(props: MuiCardProps): JSX.Element {
return <MuiCard {...props} />;
}
const Card = React.forwardRef<HTMLDivElement, MuiCardProps>((props, ref) => {
return <MuiCard {...props} ref={ref} />;
});

export default Card;
7 changes: 4 additions & 3 deletions src/base/CardActions/CardActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
CardActions as MuiCardActions,
CardActionsProps as MuiCardActionsProps
} from '@mui/material';
import React from 'react';

export function CardActions(props: MuiCardActionsProps): JSX.Element {
return <MuiCardActions {...props} />;
}
const CardActions = React.forwardRef<HTMLDivElement, MuiCardActionsProps>((props, ref) => {
return <MuiCardActions {...props} ref={ref} />;
});

export default CardActions;
7 changes: 4 additions & 3 deletions src/base/CardContent/CardContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
CardContent as MuiCardContent,
CardContentProps as MuiCardContentProps
} from '@mui/material';
import React from 'react';

export function CardContent(props: MuiCardContentProps): JSX.Element {
return <MuiCardContent {...props} />;
}
const CardContent = React.forwardRef<HTMLDivElement, MuiCardContentProps>((props, ref) => {
return <MuiCardContent {...props} ref={ref} />;
});

export default CardContent;
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;
7 changes: 4 additions & 3 deletions src/base/CardMedia/CardMedia.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { CardMedia as MuiCardMedia, CardMediaProps as MuiCardMediaProps } from '@mui/material';
import React from 'react';

export function CardMedia(props: MuiCardMediaProps): JSX.Element {
return <MuiCardMedia {...props} />;
}
const CardMedia = React.forwardRef<HTMLDivElement, MuiCardMediaProps>((props, ref) => {
return <MuiCardMedia {...props} ref={ref} />;
});

export default CardMedia;
7 changes: 4 additions & 3 deletions src/base/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Checkbox as MuiCheckbox, type CheckboxProps } from '@mui/material';
import React from 'react';

export function Checkbox(props: CheckboxProps): JSX.Element {
return <MuiCheckbox {...props} />;
}
const Checkbox = React.forwardRef<HTMLButtonElement, CheckboxProps>((props, ref) => {
return <MuiCheckbox {...props} ref={ref} />;
});

export default Checkbox;
7 changes: 4 additions & 3 deletions src/base/Chip/Chip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Chip as MuiChip, type ChipProps } from '@mui/material';
import React from 'react';

export function Chip(props: ChipProps): JSX.Element {
return <MuiChip {...props} />;
}
const Chip = React.forwardRef<HTMLDivElement, ChipProps>((props, ref) => {
return <MuiChip {...props} ref={ref} />;
});

export default Chip;
9 changes: 6 additions & 3 deletions src/base/CircularProgress/CircularProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import {
CircularProgress as MuiCircularProgress,
CircularProgressProps as MuiCircularProgressProps
} from '@mui/material';
import React from 'react';

export function CircularProgress(props: MuiCircularProgressProps): JSX.Element {
return <MuiCircularProgress {...props} />;
}
const CircularProgress = React.forwardRef<HTMLDivElement, MuiCircularProgressProps>(
(props, ref) => {
return <MuiCircularProgress {...props} ref={ref} />;
}
);

export default CircularProgress;
7 changes: 4 additions & 3 deletions src/base/ClickAwayListener/ClickAwayListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
ClickAwayListener as MuiClickAwayListener,
type ClickAwayListenerProps
} from '@mui/material';
import React from 'react';

export function ClickAwayListener(props: ClickAwayListenerProps): JSX.Element {
return <MuiClickAwayListener {...props} />;
}
const ClickAwayListener = React.forwardRef<HTMLDivElement, ClickAwayListenerProps>((props, ref) => {
return <MuiClickAwayListener {...props} ref={ref} />;
});

export default ClickAwayListener;
9 changes: 6 additions & 3 deletions src/base/Collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Collapse as MuiCollapse, CollapseProps as MuiCollapseProps } from '@mui/material';
import React from 'react';

export function Collapse(props: MuiCollapseProps): JSX.Element {
return <MuiCollapse {...props} />;
}
const Collapse = React.forwardRef<HTMLDivElement, MuiCollapseProps>((props, ref) => {
return <MuiCollapse {...props} ref={ref} />;
});

export { Collapse };
7 changes: 4 additions & 3 deletions src/base/Container/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Container as MuiContainer, ContainerProps as MuiContainerProps } from '@mui/material';
import React from 'react';

export function Container(props: MuiContainerProps): JSX.Element {
return <MuiContainer {...props} />;
}
const Container = React.forwardRef<HTMLDivElement, MuiContainerProps>((props, ref) => {
return <MuiContainer {...props} ref={ref} />;
});

export default Container;
7 changes: 4 additions & 3 deletions src/base/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Dialog as MuiDialog, type DialogProps as MuiDialogProps } from '@mui/material';
import React from 'react';

export function Dialog(props: MuiDialogProps): JSX.Element {
return <MuiDialog {...props} />;
}
const Dialog = React.forwardRef<HTMLDivElement, MuiDialogProps>((props, ref) => {
return <MuiDialog {...props} ref={ref} />;
});

export default Dialog;
7 changes: 4 additions & 3 deletions src/base/DialogActions/DialogActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
DialogActions as MuiDialogActions,
type DialogActionsProps as MuiDialogActionsProps
} from '@mui/material';
import React from 'react';

export function DialogActions(props: MuiDialogActionsProps): JSX.Element {
return <MuiDialogActions {...props} />;
}
const DialogActions = React.forwardRef<HTMLDivElement, MuiDialogActionsProps>((props, ref) => {
return <MuiDialogActions {...props} ref={ref} />;
});

export default DialogActions;
7 changes: 4 additions & 3 deletions src/base/DialogContent/DialogContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
DialogContent as MuiDialogContent,
type DialogContentProps as MuiDialogContentProps
} from '@mui/material';
import React from 'react';

export function DialogContent(props: MuiDialogContentProps): JSX.Element {
return <MuiDialogContent {...props} />;
}
const DialogContent = React.forwardRef<HTMLDivElement, MuiDialogContentProps>((props, ref) => {
return <MuiDialogContent {...props} ref={ref} />;
});

export default DialogContent;
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;
7 changes: 4 additions & 3 deletions src/base/DialogTitle/DialogTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
DialogTitle as MuiDialogTitle,
type DialogTitleProps as MuiDialogTitleProps
} from '@mui/material';
import React from 'react';

export function DialogTitle(props: MuiDialogTitleProps): JSX.Element {
return <MuiDialogTitle {...props} />;
}
const DialogTitle = React.forwardRef<HTMLDivElement, MuiDialogTitleProps>((props, ref) => {
return <MuiDialogTitle {...props} ref={ref} />;
});

export default DialogTitle;
7 changes: 4 additions & 3 deletions src/base/Drawer/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Drawer as MuiDrawer, type DrawerProps as MuiDrawerProps } from '@mui/material';
import React from 'react';

export function Drawer(props: MuiDrawerProps): JSX.Element {
return <MuiDrawer {...props} />;
}
const Drawer = React.forwardRef<HTMLDivElement, MuiDrawerProps>((props, ref) => {
return <MuiDrawer {...props} ref={ref} />;
});

export default Drawer;
11 changes: 8 additions & 3 deletions src/base/FormControlLabel/FormControlLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import {
FormControlLabel as MuiFormControlLabel,
FormControlLabelProps as MuiFormControlLabelProps
} from '@mui/material';
import React from 'react';

export function FormControlLabel(props: MuiFormControlLabelProps): JSX.Element {
return <MuiFormControlLabel {...props} />;
}
const FormControlLabel = React.forwardRef<HTMLDivElement, MuiFormControlLabelProps>(
(props, ref) => {
return <MuiFormControlLabel {...props} ref={ref} />;
}
);

export { FormControlLabel };
Loading
Loading