Skip to content

Commit a09538b

Browse files
committed
fix(type): optional, and pinLeft missing on CellTree
1 parent 5ec4b39 commit a09538b

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

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

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

6969
export type CellTreeProps<T extends TableNode> = {
7070
item: T;
71+
pinLeft?: boolean;
7172
treeIcon?: TreeOptionsIcon<T>;
7273
children?: React.ReactNode;
7374
};

.storybook/stories/Types/virtualized.story.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type VirtualizedProps<T extends TableNode> = {
1717
rowHeight: RowHeight;
1818
header: () => React.ReactNode;
1919
body: (node: T, index: number) => React.ReactNode;
20-
tableOptions: TableOptions;
21-
rowOptions: RowOptions<T>;
20+
tableOptions?: TableOptions;
21+
rowOptions?: RowOptions<T>;
2222
};
2323
```

src/types/tree.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export type ColumnTreeProps<T extends TableNode> = ColumnTreePropsObject<T> | bo
6161

6262
export type CellTreeProps<T extends TableNode> = {
6363
item: T;
64+
pinLeft?: boolean;
6465
treeIcon?: TreeOptionsIcon<T>;
6566
children?: React.ReactNode;
6667
};

src/types/virtualized.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export type VirtualizedProps<T extends TableNode> = {
1010
rowHeight: RowHeight;
1111
header: () => React.ReactNode;
1212
body: (node: T, index: number) => React.ReactNode;
13-
tableOptions: TableOptions;
14-
rowOptions: RowOptions<T>;
13+
tableOptions?: TableOptions;
14+
rowOptions?: RowOptions<T>;
1515
};

0 commit comments

Comments
 (0)