diff --git a/.storybook/stories/Types/tree.story.mdx b/.storybook/stories/Types/tree.story.mdx index 434e75f..722a3b2 100644 --- a/.storybook/stories/Types/tree.story.mdx +++ b/.storybook/stories/Types/tree.story.mdx @@ -68,10 +68,9 @@ export type ColumnTreeProps = ColumnTreePropsObject | bo export type CellTreeProps = { item: T; - pinLeft?: boolean; treeIcon?: TreeOptionsIcon; children?: React.ReactNode; -}; +} & CellProps; export type Tree = { state: State; diff --git a/src/types/tree.ts b/src/types/tree.ts index 5f66827..f34e006 100644 --- a/src/types/tree.ts +++ b/src/types/tree.ts @@ -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, @@ -61,10 +61,9 @@ export type ColumnTreeProps = ColumnTreePropsObject | bo export type CellTreeProps = { item: T; - pinLeft?: boolean; treeIcon?: TreeOptionsIcon; children?: React.ReactNode; -}; +} & CellProps; export type Tree = { state: State;