File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export type PaginationWidgetProps = {
27
27
const range = ( start : number , stop : number , step = 1 ) =>
28
28
Array . from ( { length : ( stop - start ) / step + 1 } , ( _ , i ) => start + i * step )
29
29
30
- const DEFAULT_RECORDS_PER_PAGE = 25
30
+ export const DEFAULT_RECORDS_PER_PAGE = 25
31
31
// Number of pages to the left or right of the current page selection.
32
32
const PAGE_NEIGHBORS = 1
33
33
// Number of pages displayed for cases where there are multiple ellipsis showing. This can be
Original file line number Diff line number Diff line change 1
1
import { useMachine } from "@xstate/react"
2
+ import { DEFAULT_RECORDS_PER_PAGE } from "components/PaginationWidget/PaginationWidget"
2
3
import { FC } from "react"
3
4
import { Helmet } from "react-helmet-async"
4
5
import { useNavigate , useSearchParams } from "react-router-dom"
@@ -17,7 +18,7 @@ const WorkspacesPage: FC = () => {
17
18
const [ workspacesState , send ] = useMachine ( workspacesMachine , {
18
19
context : {
19
20
page : currentPage ,
20
- limit : 25 ,
21
+ limit : DEFAULT_RECORDS_PER_PAGE ,
21
22
filter,
22
23
} ,
23
24
actions : {
You can’t perform that action at this time.
0 commit comments