PullToRefresh: switch back to the old loading indicator for now

strip-front-mentions
Alex Gleason 2021-12-02 22:37:08 -06:00
rodzic 94f3133dd4
commit 0b0e7188e3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import PTRComponent from 'react-simple-pull-to-refresh';
import LoadingSpinner from 'soapbox/components/loading_spinner';
/**
* PullToRefresh:
@ -33,7 +32,7 @@ export default class PullToRefresh extends React.Component {
onRefresh={this.handleRefresh}
pullingContent={null}
// `undefined` will fallback to the default, while `null` will render nothing
refreshingContent={onRefresh ? <LoadingSpinner size={30} /> : null}
refreshingContent={onRefresh ? undefined : null}
pullDownThreshold={67}
maxPullDownDistance={95}
resistance={2}