We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a798677 commit db67d93Copy full SHA for db67d93
1 file changed
extensions/ql-vscode/src/view/common/DataGrid.tsx
@@ -55,18 +55,14 @@ interface DataGridRowProps {
55
}
56
57
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
- },
+ (
+ { focused, children, "data-testid": testId }: DataGridRowProps,
+ ref?: React.Ref<HTMLElement | undefined>,
+ ) => (
+ <StyledDataGridRow $focused={focused} ref={ref} data-testid={testId}>
+ {children}
+ </StyledDataGridRow>
+ ),
70
);
71
DataGridRow.displayName = "DataGridRow";
72
0 commit comments