showing all is pretty slow, show an additional 50 instead

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-07-04 13:07:57 +01:00
parent e5392e2c00
commit dc6b3cb081
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 2 additions and 1 deletions

View File

@ -243,6 +243,7 @@ class SendAccountData extends GenericEditor {
} }
const INITIAL_LOAD_TILES = 20; const INITIAL_LOAD_TILES = 20;
const LOAD_TILES_STEP_SIZE = 50;
class FilteredList extends React.Component { class FilteredList extends React.Component {
static propTypes = { static propTypes = {
@ -276,7 +277,7 @@ class FilteredList extends React.Component {
showAll = () => { showAll = () => {
this.setState({ this.setState({
truncateAt: -1, truncateAt: this.state.truncateAt + LOAD_TILES_STEP_SIZE,
}); });
}; };