Skip to content

Commit

Permalink
fix(CellTree): oinherits from Cell
Browse files Browse the repository at this point in the history
  • Loading branch information
rwieruch committed Aug 8, 2023
1 parent a09538b commit 36afcc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .storybook/stories/Types/tree.story.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ export type ColumnTreeProps<T extends TableNode> = ColumnTreePropsObject<T> | bo

export type CellTreeProps<T extends TableNode> = {
item: T;
pinLeft?: boolean;
treeIcon?: TreeOptionsIcon<T>;
children?: React.ReactNode;
};
} & CellProps;

export type Tree<T extends TableNode> = {
state: State;
Expand Down
5 changes: 2 additions & 3 deletions src/types/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Modifier,
Nullish,
} from '@table-library/react-table-library/types/common';
import { TableNode, GetRowProps } from '@table-library/react-table-library/types/table';
import { TableNode, GetRowProps, CellProps } from '@table-library/react-table-library/types/table';

export enum TreeExpandClickTypes {
RowClick,
Expand Down Expand Up @@ -61,10 +61,9 @@ export type ColumnTreeProps<T extends TableNode> = ColumnTreePropsObject<T> | bo

export type CellTreeProps<T extends TableNode> = {
item: T;
pinLeft?: boolean;
treeIcon?: TreeOptionsIcon<T>;
children?: React.ReactNode;
};
} & CellProps;

export type Tree<T extends TableNode> = {
state: State;
Expand Down

0 comments on commit 36afcc1

Please sign in to comment.