Skip to content

Commit 794687c

Browse files
committed
GroupRowRendererProps -> GroupedRowProps
1 parent 6cffef1 commit 794687c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/GroupRow.tsx renamed to src/GroupedRow.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const groupRow = css`
2424

2525
const groupRowClassname = `rdg-group-row ${groupRow}`;
2626

27-
interface GroupRowRendererProps<R, SR> extends BaseRenderRowProps<R, SR> {
27+
interface GroupedRowProps<R, SR> extends BaseRenderRowProps<R, SR> {
2828
row: GroupRow<R>;
2929
groupBy: readonly string[];
3030
toggleGroup: (expandedGroupId: unknown) => void;
@@ -43,7 +43,7 @@ function GroupedRow<R, SR>({
4343
toggleGroup,
4444
isRowSelectionDisabled: _isRowSelectionDisabled,
4545
...props
46-
}: GroupRowRendererProps<R, SR>) {
46+
}: GroupedRowProps<R, SR>) {
4747
const isPositionOnRow = selectedCellIdx === -1;
4848
// Select is always the first column
4949
const idx = viewportColumns[0].key === SELECT_COLUMN_KEY ? row.level + 1 : row.level;
@@ -97,6 +97,4 @@ function GroupedRow<R, SR>({
9797
);
9898
}
9999

100-
export default memo(GroupedRow) as <R, SR>(
101-
props: GroupRowRendererProps<R, SR>
102-
) => React.JSX.Element;
100+
export default memo(GroupedRow) as <R, SR>(props: GroupedRowProps<R, SR>) => React.JSX.Element;

src/TreeDataGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { SELECT_COLUMN_KEY } from './Columns';
2222
import { DataGrid } from './DataGrid';
2323
import type { DataGridProps } from './DataGrid';
2424
import { useDefaultRenderers } from './DataGridDefaultRenderersContext';
25-
import GroupedRow from './GroupRow';
25+
import GroupedRow from './GroupedRow';
2626
import { defaultRenderRow } from './Row';
2727

2828
export interface TreeDataGridProps<R, SR = unknown, K extends Key = Key> extends Omit<

0 commit comments

Comments
 (0)