Extract DataGridRow props in params

This commit is contained in:
Robert
2023-10-18 16:24:34 +01:00
parent a79867732c
commit db67d93f83

View File

@@ -55,18 +55,14 @@ interface DataGridRowProps {
}
export const DataGridRow = forwardRef(
(props: DataGridRowProps, ref?: React.Ref<HTMLElement | undefined>) => {
const { focused, children } = props;
return (
<StyledDataGridRow
$focused={focused}
ref={ref}
data-testid={props["data-testid"]}
>
(
{ focused, children, "data-testid": testId }: DataGridRowProps,
ref?: React.Ref<HTMLElement | undefined>,
) => (
<StyledDataGridRow $focused={focused} ref={ref} data-testid={testId}>
{children}
</StyledDataGridRow>
);
},
),
);
DataGridRow.displayName = "DataGridRow";