mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add default perPag amount to PaginatedList
This commit is contained in:
parent
ae0be1b78f
commit
a23b0c02db
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
export const defaultPerPage = 20
|
||||
|
||||
export class PaginatedList {
|
||||
constructor({ list, perPage }) {
|
||||
constructor({ list, perPage = defaultPerPage }) {
|
||||
this.list = list
|
||||
this.perPage = perPage
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue