mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -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 {
|
export class PaginatedList {
|
||||||
constructor({ list, perPage }) {
|
constructor({ list, perPage = defaultPerPage }) {
|
||||||
this.list = list
|
this.list = list
|
||||||
this.perPage = perPage
|
this.perPage = perPage
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue