diff options
Diffstat (limited to 'packages/bank-ui/src/utils.ts')
-rw-r--r-- | packages/bank-ui/src/utils.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/bank-ui/src/utils.ts b/packages/bank-ui/src/utils.ts index 305f13803..2cc502416 100644 --- a/packages/bank-ui/src/utils.ts +++ b/packages/bank-ui/src/utils.ts @@ -120,7 +120,11 @@ export enum CashoutStatus { PENDING = "pending", } -export const PAGE_SIZE = 5; + +export const PAGINATED_LIST_SIZE = 5; +// when doing paginated request, ask for one more +// and use it to know if there are more to request +export const PAGINATED_LIST_REQUEST = PAGINATED_LIST_SIZE + 1; type Translator = ReturnType<typeof useTranslationContext>["i18n"]; |