diff --git a/types/react-virtualized/react-virtualized-tests.tsx b/types/react-virtualized/react-virtualized-tests.tsx index a3aca90c22..54a0d69f92 100644 --- a/types/react-virtualized/react-virtualized-tests.tsx +++ b/types/react-virtualized/react-virtualized-tests.tsx @@ -1656,13 +1656,13 @@ export class TableExample extends PureComponent { } } -import {TableCellProps} from "./dist/es/Table"; +import {TableCellProps} from "react-virtualized" export class DynamicHeightTableColumnExample extends PureComponent { state; context; _cache: CellMeasurerCache; - constructor (props, context) { + constructor(props, context) { super(props, context) this._cache = new CellMeasurerCache({ @@ -1674,13 +1674,13 @@ export class DynamicHeightTableColumnExample extends PureComponent { this._rowGetter = this._rowGetter.bind(this) } - componentWillReceiveProps (nextProps) { + componentWillReceiveProps(nextProps) { if (nextProps.width !== this.props.width) { this._cache.clearAll() } } - render () { + render() { const { width } = this.props return ( @@ -1717,7 +1717,7 @@ export class DynamicHeightTableColumnExample extends PureComponent { ) } - _columnCellRenderer (args: TableCellProps) { + _columnCellRenderer(args: TableCellProps) { const { list } = this.props const datum = list.get(args.rowIndex % list.size) @@ -1745,7 +1745,7 @@ export class DynamicHeightTableColumnExample extends PureComponent { ) } - _rowGetter ({ index }) { + _rowGetter({ index }) { const { list } = this.props return list.get(index % list.size)