Remove duplicated react-virtualized type

This commit is contained in:
Evan Hahn 2022-02-10 12:59:09 -06:00 committed by GitHub
parent af995c83b6
commit 4e707c1b9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,10 @@
import { debounce, get, isEqual, isNumber, pick } from 'lodash'; import { debounce, get, isEqual, isNumber, pick } from 'lodash';
import classNames from 'classnames'; import classNames from 'classnames';
import type { CSSProperties, ReactChild, ReactNode, RefObject } from 'react'; import type { ReactChild, ReactNode, RefObject } from 'react';
import React from 'react'; import React from 'react';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import type { Grid } from 'react-virtualized'; import type { Grid, ListRowProps } from 'react-virtualized';
import { import {
AutoSizer, AutoSizer,
CellMeasurer, CellMeasurer,
@ -185,15 +185,6 @@ export type PropsType = PropsDataType &
PropsHousekeepingType & PropsHousekeepingType &
PropsActionsType; PropsActionsType;
// from https://github.com/bvaughn/react-virtualized/blob/fb3484ed5dcc41bffae8eab029126c0fb8f7abc0/source/List/types.js#L5
type RowRendererParamsType = {
index: number;
isScrolling: boolean;
isVisible: boolean;
key: string;
parent: Record<string, unknown>;
style: CSSProperties;
};
type OnScrollParamsType = { type OnScrollParamsType = {
scrollTop: number; scrollTop: number;
clientHeight: number; clientHeight: number;
@ -781,7 +772,7 @@ export class Timeline extends React.PureComponent<PropsType, StateType> {
key, key,
parent, parent,
style, style,
}: Readonly<RowRendererParamsType>): JSX.Element => { }: Readonly<ListRowProps>): JSX.Element => {
const { const {
id, id,
i18n, i18n,