File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export type PaginationWidgetProps = {
2727const range = ( start : number , stop : number , step = 1 ) =>
2828 Array . from ( { length : ( stop - start ) / step + 1 } , ( _ , i ) => start + i * step )
2929
30- const DEFAULT_RECORDS_PER_PAGE = 25
30+ export const DEFAULT_RECORDS_PER_PAGE = 25
3131// Number of pages to the left or right of the current page selection.
3232const PAGE_NEIGHBORS = 1
3333// 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 11import { useMachine } from "@xstate/react"
2+ import { DEFAULT_RECORDS_PER_PAGE } from "components/PaginationWidget/PaginationWidget"
23import { FC } from "react"
34import { Helmet } from "react-helmet-async"
45import { useNavigate , useSearchParams } from "react-router-dom"
@@ -17,7 +18,7 @@ const WorkspacesPage: FC = () => {
1718 const [ workspacesState , send ] = useMachine ( workspacesMachine , {
1819 context : {
1920 page : currentPage ,
20- limit : 25 ,
21+ limit : DEFAULT_RECORDS_PER_PAGE ,
2122 filter,
2223 } ,
2324 actions : {
You can’t perform that action at this time.
0 commit comments