File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ import {Pagination, PaginationProps} from '@gravity-ui/uikit';
24
24
25
25
const [state , setState ] = React .useState ({page: 1 , pageSize: 100 });
26
26
27
+ const PAGE_PARAM = ' page_number' ;
28
+ const PAGE_SIZE_PARAM = ' page_size' ;
29
+
27
30
const pageHrefBuilder: PaginationProps ['pageHrefBuilder '] = (page , pageSize ) => {
28
31
const queryParams = new URLSearchParams (window .location .search );
29
32
queryParams .set (PAGE_PARAM , String (page));
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ import {Pagination, PaginationProps} from '@gravity-ui/uikit';
25
25
26
26
const [state , setState ] = React .useState ({page: 1 , pageSize: 100 });
27
27
28
+ const PAGE_PARAM = ' page_number' ;
29
+ const PAGE_SIZE_PARAM = ' page_size' ;
30
+
28
31
const pageHrefBuilder: PaginationProps ['pageHrefBuilder '] = (page , pageSize ) => {
29
32
const queryParams = new URLSearchParams (window .location .search );
30
33
queryParams .set (PAGE_PARAM , String (page));
You can’t perform that action at this time.
0 commit comments