pl-fe: remove commented out code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
b76dce2eb5
commit
1727dc4e1b
1 changed files with 0 additions and 2 deletions
|
@ -93,12 +93,10 @@ const ScrollableList = React.forwardRef<Virtualizer<any, any>, IScrollableList>(
|
||||||
const virtualizer = useWindowScroll ? useWindowVirtualizer({
|
const virtualizer = useWindowScroll ? useWindowVirtualizer({
|
||||||
count: data.length + (hasMore ? 1 : 0),
|
count: data.length + (hasMore ? 1 : 0),
|
||||||
overscan: 3,
|
overscan: 3,
|
||||||
// scrollMargin: parentRef.current?.offsetTop ?? 0,
|
|
||||||
estimateSize: () => estimatedSize,
|
estimateSize: () => estimatedSize,
|
||||||
}) : useVirtualizer({
|
}) : useVirtualizer({
|
||||||
count: data.length + (hasMore ? 1 : 0),
|
count: data.length + (hasMore ? 1 : 0),
|
||||||
overscan: 3,
|
overscan: 3,
|
||||||
// scrollMargin: parentRef.current?.offsetTop ?? 0,
|
|
||||||
estimateSize: () => estimatedSize,
|
estimateSize: () => estimatedSize,
|
||||||
getScrollElement: () => parentRef.current,
|
getScrollElement: () => parentRef.current,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue