diff --git a/src/components/Paginator.res b/src/components/Paginator.res index 6f72f752e..2c6df31c3 100644 --- a/src/components/Paginator.res +++ b/src/components/Paginator.res @@ -38,7 +38,7 @@ let make = ( }, (shouldRefetch, handleRefetch)) let selectInputOption = { - [5, 10, 15, 25, 50, 100] + [5, 10, 15, 25, 50] ->Array.filter(val => val <= totalResults) ->Array.map(Int.toString) ->SelectBox.makeOptions diff --git a/src/screens/APIUtils/APIUtils.res b/src/screens/APIUtils/APIUtils.res index 74ad81761..177e2b4c1 100644 --- a/src/screens/APIUtils/APIUtils.res +++ b/src/screens/APIUtils/APIUtils.res @@ -80,7 +80,7 @@ let useGetURL = () => { | None => `payments/list?limit=100` } } - | Post => `payments/list?limit=20` + | Post => `payments/list` | _ => "" } | REFUNDS => @@ -101,7 +101,7 @@ let useGetURL = () => { } | Post => switch id { - | Some(_keyid) => `refunds/list?limit=20` + | Some(_keyid) => `refunds/list` | None => `refunds` } | _ => "" diff --git a/src/screens/Order/Orders.res b/src/screens/Order/Orders.res index c08447b71..ed423ec25 100644 --- a/src/screens/Order/Orders.res +++ b/src/screens/Order/Orders.res @@ -32,7 +32,7 @@ let make = (~previewOnly=false) => { let filters = Dict.make() filters->Dict.set("offset", offset->Int.toFloat->JSON.Encode.float) - filters->Dict.set("limit", 20->Int.toFloat->JSON.Encode.float) + filters->Dict.set("limit", 50->Int.toFloat->JSON.Encode.float) if !(searchText->isEmptyString) { filters->Dict.set("payment_id", searchText->String.trim->JSON.Encode.string) } @@ -138,7 +138,6 @@ let make = (~previewOnly=false) => { sortingBasedOnDisabled=false hideTitle=true previewOnly - showResultsPerPageSelector=false /> diff --git a/src/screens/Refunds/Refund.res b/src/screens/Refunds/Refund.res index f4cad5fa0..520455449 100644 --- a/src/screens/Refunds/Refund.res +++ b/src/screens/Refunds/Refund.res @@ -22,7 +22,7 @@ let make = () => { let filters = Dict.make() filters->Dict.set("offset", offset->Int.toFloat->JSON.Encode.float) - filters->Dict.set("limit", 20->Int.toFloat->JSON.Encode.float) + filters->Dict.set("limit", 50->Int.toFloat->JSON.Encode.float) if !(searchText->isEmptyString) { filters->Dict.set("payment_id", searchText->String.trim->JSON.Encode.string) filters->Dict.set("refund_id", searchText->String.trim->JSON.Encode.string) @@ -102,7 +102,6 @@ let make = () => { customColumnMapper=TableAtoms.refundsMapDefaultCols showSerialNumberInCustomizeColumns=false sortingBasedOnDisabled=false - showResultsPerPageSelector=false />