Skip to content

Commit 48059d9

Browse files
committed
chore: add constants to example
1 parent 92a0d91 commit 48059d9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/components/Pagination/README-ru.md

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import {Pagination, PaginationProps} from '@gravity-ui/uikit';
2424

2525
const [state, setState] = React.useState({page: 1, pageSize: 100});
2626

27+
const PAGE_PARAM = 'page_number';
28+
const PAGE_SIZE_PARAM = 'page_size';
29+
2730
const pageHrefBuilder: PaginationProps['pageHrefBuilder'] = (page, pageSize) => {
2831
const queryParams = new URLSearchParams(window.location.search);
2932
queryParams.set(PAGE_PARAM, String(page));

src/components/Pagination/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import {Pagination, PaginationProps} from '@gravity-ui/uikit';
2525

2626
const [state, setState] = React.useState({page: 1, pageSize: 100});
2727

28+
const PAGE_PARAM = 'page_number';
29+
const PAGE_SIZE_PARAM = 'page_size';
30+
2831
const pageHrefBuilder: PaginationProps['pageHrefBuilder'] = (page, pageSize) => {
2932
const queryParams = new URLSearchParams(window.location.search);
3033
queryParams.set(PAGE_PARAM, String(page));

0 commit comments

Comments
 (0)