Skip to content

Commit

Permalink
Fix Tree types, TreeNode is a ComponentClass
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Jun 12, 2018
1 parent 7e2ba7e commit 99cad89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tree/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export interface TreeProps {
}

export default class Tree extends React.Component<TreeProps, any> {
static TreeNode: React.ComponentType<AntTreeNodeProps> = TreeNode;
static TreeNode: React.ComponentClass<AntTreeNodeProps> = TreeNode;

static defaultProps = {
prefixCls: 'ant-tree',
Expand Down

0 comments on commit 99cad89

Please sign in to comment.