Skip to content

Commit

Permalink
fix(guestsList): issues/10 increase paging limit (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Sep 29, 2020
1 parent 98ffe05 commit eca2a39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ exports[`GuestsList Component should handle updating paging state: state 1`] = `
Object {
"initialState": Object {
"currentPage": 0,
"limit": 10,
"limit": 100,
"previousData": Array [],
},
"scrollComplete": Object {
"currentPage": 1,
"limit": 10,
"limit": 100,
"previousData": Array [
Object {
"dolor": "sit",
Expand All @@ -129,7 +129,7 @@ Object {
},
"scrollProgress": Object {
"currentPage": 0,
"limit": 10,
"limit": 100,
"previousData": Array [],
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/guestsList/__tests__/guestsList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('GuestsList Component', () => {
it('should handle updating paging state', () => {
const props = {
id: 'lorem',
numberOfGuests: 11,
numberOfGuests: 111,
listData: [{ lorem: 'ipsum', dolor: 'sit' }]
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/guestsList/guestsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { Table } from '../table/table';
* @fires onScroll
*/
class GuestsList extends React.Component {
state = { currentPage: 0, limit: 10, previousData: [] };
state = { currentPage: 0, limit: 100, previousData: [] };

componentDidMount() {
this.onUpdateGuestsData();
Expand Down

0 comments on commit eca2a39

Please sign in to comment.