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.
This commit is contained in:
Alex Gleason 2022-04-22 13:00:12 -05:00
parent 083b3c22d0
commit 006e253e23
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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 || []);