Fix type definition for Card Component. (#7196)

React.Component requires two parameters. The second parameter (State) is now optional in a more recent version of @types/react however upgrading to this has several major/breaking changes elsewhere. I would prefer to explicitly define State as `{}` in this case.
This commit is contained in:
Mitchell Demler 2017-08-14 13:44:44 +12:00 committed by 偏右
parent e92ef95f74
commit 293d63910a

View File

@ -18,7 +18,7 @@ export interface CardProps {
className?: string;
}
export default class Card extends Component<CardProps> {
export default class Card extends Component<CardProps, {}> {
static Grid: typeof Grid = Grid;
container: HTMLDivElement;
resizeEvent: any;