From db67d93f832b12f79451c82e75aa48b5b3e3900d Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 18 Oct 2023 16:24:34 +0100 Subject: [PATCH] Extract DataGridRow props in params --- .../ql-vscode/src/view/common/DataGrid.tsx | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/extensions/ql-vscode/src/view/common/DataGrid.tsx b/extensions/ql-vscode/src/view/common/DataGrid.tsx index d735b3c7c..a3a06941c 100644 --- a/extensions/ql-vscode/src/view/common/DataGrid.tsx +++ b/extensions/ql-vscode/src/view/common/DataGrid.tsx @@ -55,18 +55,14 @@ interface DataGridRowProps { } export const DataGridRow = forwardRef( - (props: DataGridRowProps, ref?: React.Ref) => { - const { focused, children } = props; - return ( - - {children} - - ); - }, + ( + { focused, children, "data-testid": testId }: DataGridRowProps, + ref?: React.Ref, + ) => ( + + {children} + + ), ); DataGridRow.displayName = "DataGridRow";