Skip to content

Commit 36afcc1

Browse files
committed
fix(CellTree): oinherits from Cell
1 parent a09538b commit 36afcc1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.storybook/stories/Types/tree.story.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ export type ColumnTreeProps<T extends TableNode> = ColumnTreePropsObject<T> | bo
6868

6969
export type CellTreeProps<T extends TableNode> = {
7070
item: T;
71-
pinLeft?: boolean;
7271
treeIcon?: TreeOptionsIcon<T>;
7372
children?: React.ReactNode;
74-
};
73+
} & CellProps;
7574

7675
export type Tree<T extends TableNode> = {
7776
state: State;

src/types/tree.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Modifier,
66
Nullish,
77
} from '@table-library/react-table-library/types/common';
8-
import { TableNode, GetRowProps } from '@table-library/react-table-library/types/table';
8+
import { TableNode, GetRowProps, CellProps } from '@table-library/react-table-library/types/table';
99

1010
export enum TreeExpandClickTypes {
1111
RowClick,
@@ -61,10 +61,9 @@ export type ColumnTreeProps<T extends TableNode> = ColumnTreePropsObject<T> | bo
6161

6262
export type CellTreeProps<T extends TableNode> = {
6363
item: T;
64-
pinLeft?: boolean;
6564
treeIcon?: TreeOptionsIcon<T>;
6665
children?: React.ReactNode;
67-
};
66+
} & CellProps;
6867

6968
export type Tree<T extends TableNode> = {
7069
state: State;

0 commit comments

Comments
 (0)