Skip to content

Commit

Permalink
Don't need extends from rc-table
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Jun 1, 2017
1 parent dd60cf8 commit fd7ef24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions components/table/Column.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import RcTable from 'rc-table';

export interface ColumnProps<T> {
title?: React.ReactNode;
Expand All @@ -24,4 +23,4 @@ export interface ColumnProps<T> {
onCellClick?: (record: T, event: any) => void;
}

export default class Column<T> extends (RcTable.Column as React.ComponentClass<ColumnProps<T>>) {}
export default class Column<T> extends React.Component<ColumnProps<T>, React.ComponentState> {}
3 changes: 1 addition & 2 deletions components/table/ColumnGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import RcTable from 'rc-table';

export interface ColumnGroupProps {
title?: React.ReactNode;
}

export default class ColumnGroup extends (RcTable.ColumnGroup as React.ComponentClass<ColumnGroupProps>) {}
export default class ColumnGroup extends React.Component<ColumnGroupProps, React.ComponentState> {}

0 comments on commit fd7ef24

Please sign in to comment.