sforkowany z mirror/soapbox
ScrollableList: Don't support `autoloadMore` for now
This setting allowed disabling endless scrolling, and would display a clickable "load more" button at the bottom of the feed.revert-5af0e40a
rodzic
083b3c22d0
commit
006e253e23
|
@ -2,7 +2,6 @@ import React from 'react';
|
||||||
import { Virtuoso } from 'react-virtuoso';
|
import { Virtuoso } from 'react-virtuoso';
|
||||||
|
|
||||||
import PullToRefresh from 'soapbox/components/pull-to-refresh';
|
import PullToRefresh from 'soapbox/components/pull-to-refresh';
|
||||||
// import { useSettings } from 'soapbox/hooks';
|
|
||||||
|
|
||||||
import { Spinner, Text } from './ui';
|
import { Spinner, Text } from './ui';
|
||||||
|
|
||||||
|
@ -65,9 +64,6 @@ const ScrollableList: React.FC<IScrollableList> = ({
|
||||||
placeholderComponent: Placeholder,
|
placeholderComponent: Placeholder,
|
||||||
placeholderCount = 0,
|
placeholderCount = 0,
|
||||||
}) => {
|
}) => {
|
||||||
// const settings = useSettings();
|
|
||||||
// const autoload = settings.get('autoloadMore');
|
|
||||||
|
|
||||||
/** Normalized children */
|
/** Normalized children */
|
||||||
const elements = Array.from(children || []);
|
const elements = Array.from(children || []);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue