Shared: delete old code
This commit is contained in:
parent
efbeb95641
commit
ef264c7755
@ -42,7 +42,6 @@ export interface InfiniteLoaderProps {
|
|||||||
className?: string;
|
className?: string;
|
||||||
infoPanelVisible?: boolean;
|
infoPanelVisible?: boolean;
|
||||||
countTilesInRow?: number;
|
countTilesInRow?: number;
|
||||||
isIndexEditingMode: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ListComponentProps extends InfiniteLoaderProps {
|
export interface ListComponentProps extends InfiniteLoaderProps {
|
||||||
|
@ -47,7 +47,6 @@ const ListComponent = ({
|
|||||||
className,
|
className,
|
||||||
scroll,
|
scroll,
|
||||||
infoPanelVisible,
|
infoPanelVisible,
|
||||||
isIndexEditingMode,
|
|
||||||
}: ListComponentProps) => {
|
}: ListComponentProps) => {
|
||||||
const loaderRef = useRef<InfiniteLoader | null>(null);
|
const loaderRef = useRef<InfiniteLoader | null>(null);
|
||||||
const listRef = useRef<List | null>(null);
|
const listRef = useRef<List | null>(null);
|
||||||
@ -122,13 +121,6 @@ const ListComponent = ({
|
|||||||
? localStorage.getItem(columnInfoPanelStorageName)
|
? localStorage.getItem(columnInfoPanelStorageName)
|
||||||
: localStorage.getItem(columnStorageName);
|
: localStorage.getItem(columnStorageName);
|
||||||
|
|
||||||
let indexEditingColumn;
|
|
||||||
|
|
||||||
if (isIndexEditingMode && storageSize) {
|
|
||||||
const storage = storageSize?.split(" ");
|
|
||||||
indexEditingColumn = storage?.splice(0, storage.length - 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
const isLoaded = isItemLoaded({ index });
|
const isLoaded = isItemLoaded({ index });
|
||||||
if (!isLoaded) return getLoader(style, key);
|
if (!isLoaded) return getLoader(style, key);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user