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
1 changed files with 3 additions and 12 deletions

View File

@ -3,10 +3,10 @@
import { debounce, get, isEqual, isNumber, pick } from 'lodash';
import classNames from 'classnames';
import type { CSSProperties, ReactChild, ReactNode, RefObject } from 'react';
import type { ReactChild, ReactNode, RefObject } from 'react';
import React from 'react';
import { createSelector } from 'reselect';
import type { Grid } from 'react-virtualized';
import type { Grid, ListRowProps } from 'react-virtualized';
import {
AutoSizer,
CellMeasurer,
@ -185,15 +185,6 @@ export type PropsType = PropsDataType &
PropsHousekeepingType &
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 = {
scrollTop: number;
clientHeight: number;
@ -781,7 +772,7 @@ export class Timeline extends React.PureComponent<PropsType, StateType> {
key,
parent,
style,
}: Readonly<RowRendererParamsType>): JSX.Element => {
}: Readonly<ListRowProps>): JSX.Element => {
const {
id,
i18n,