Skip to content

Commit db67d93

Browse files
Extract DataGridRow props in params
1 parent a798677 commit db67d93

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

extensions/ql-vscode/src/view/common/DataGrid.tsx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,14 @@ interface DataGridRowProps {
5555
}
5656

5757
export const DataGridRow = forwardRef(
58-
(props: DataGridRowProps, ref?: React.Ref<HTMLElement | undefined>) => {
59-
const { focused, children } = props;
60-
return (
61-
<StyledDataGridRow
62-
$focused={focused}
63-
ref={ref}
64-
data-testid={props["data-testid"]}
65-
>
66-
{children}
67-
</StyledDataGridRow>
68-
);
69-
},
58+
(
59+
{ focused, children, "data-testid": testId }: DataGridRowProps,
60+
ref?: React.Ref<HTMLElement | undefined>,
61+
) => (
62+
<StyledDataGridRow $focused={focused} ref={ref} data-testid={testId}>
63+
{children}
64+
</StyledDataGridRow>
65+
),
7066
);
7167
DataGridRow.displayName = "DataGridRow";
7268

0 commit comments

Comments
 (0)