From 870be54b8f1088e56dce2ae1c3b9c7ff6629f9bb Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Sun, 3 Dec 2023 18:16:25 +0000 Subject: [PATCH] Lint fixes --- packages/desktop-client/src/components/FixedSizeList.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/desktop-client/src/components/FixedSizeList.tsx b/packages/desktop-client/src/components/FixedSizeList.tsx index a3211001920..678474c6a60 100644 --- a/packages/desktop-client/src/components/FixedSizeList.tsx +++ b/packages/desktop-client/src/components/FixedSizeList.tsx @@ -1,4 +1,4 @@ -import React, { +import { createRef, PureComponent, type ReactElement, @@ -8,11 +8,10 @@ import React, { type UIEvent, } from 'react'; -import { type CSSProperties } from '../style'; - import memoizeOne from 'memoize-one'; import useResizeObserver from '../hooks/useResizeObserver'; +import { type CSSProperties } from '../style'; import View from './common/View'; @@ -39,7 +38,7 @@ type FixedSizeListProps = { style: CSSProperties; isScrolling?: boolean; isAnimating: boolean; - }) => React.ReactNode; + }) => ReactNode; layout?: 'vertical' | 'horizontal'; overscanCount?: number; useIsScrolling?: boolean; @@ -590,7 +589,7 @@ export default class FixedSizeList extends PureComponent< this.setState({ isScrolling: false }, () => { // Clear style cache after state update has been committed. // This way we don't break pure sCU for items that don't use isScrolling param. - // @ts-expect-error + // @ts-expect-error fix me this._getItemStyleCache(-1, null); }); };