Skip to content

Commit 579042c

Browse files
Extract props in parameters instead of as statement
1 parent 2c70c0b commit 579042c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ interface DataGridProps {
2424
children: React.ReactNode;
2525
}
2626

27-
export function DataGrid(props: DataGridProps) {
28-
const { gridTemplateColumns, children } = props;
29-
27+
export function DataGrid({ gridTemplateColumns, children }: DataGridProps) {
3028
return (
3129
<StyledDataGrid $gridTemplateColumns={gridTemplateColumns}>
3230
{children}
@@ -66,9 +64,12 @@ interface DataGridCellProps {
6664
children: React.ReactNode;
6765
}
6866

69-
export function DataGridCell(props: DataGridCellProps) {
70-
const { gridRow, gridColumn, className, children } = props;
71-
67+
export function DataGridCell({
68+
gridRow,
69+
gridColumn,
70+
className,
71+
children,
72+
}: DataGridCellProps) {
7273
return (
7374
<StyledDataGridCell
7475
$gridRow={gridRow}

0 commit comments

Comments
 (0)