Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Dec 3, 2023
1 parent e61f018 commit 870be54
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/desktop-client/src/components/FixedSizeList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {
import {
createRef,
PureComponent,
type ReactElement,
Expand All @@ -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';

Expand All @@ -39,7 +38,7 @@ type FixedSizeListProps = {
style: CSSProperties;
isScrolling?: boolean;
isAnimating: boolean;
}) => React.ReactNode;
}) => ReactNode;
layout?: 'vertical' | 'horizontal';
overscanCount?: number;
useIsScrolling?: boolean;
Expand Down Expand Up @@ -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);
});
};
Expand Down

0 comments on commit 870be54

Please sign in to comment.