Remove duplicated react-virtualized type
This commit is contained in:
parent
af995c83b6
commit
4e707c1b9a
1 changed files with 3 additions and 12 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue