Skip to content

Commit

Permalink
update react-pagination to v3.0.3 (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
devgioele authored Aug 9, 2023
1 parent cdc4044 commit b660a70
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
"react-hook-form": "^7.45.2"
},
"peerDependencies": {
"@aboutbits/react-pagination": "^2.0.0",
"@aboutbits/react-pagination": "^3.0.3",
"react": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@aboutbits/eslint-config": "^2.1.2",
"@aboutbits/prettier-config": "^1.6.0",
"@aboutbits/react-pagination": "^2.0.2",
"@aboutbits/react-pagination": "^3.0.3",
"@aboutbits/ts-config": "^1.1.2",
"@hookform/resolvers": "^3.1.1",
"@storybook/addon-essentials": "^7.0.26",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ export function SelectItemFormFieldDialog<ItemType, Error>({
const { form: theme } = useTheme()

const { query, page, size, setQuery, setPage } = useQueryAndPagination(
defaultValues,
(query) => {
if (query.search === undefined || Array.isArray(query.search)) {
return {}
}
return { search: query.search }
},
defaultValues,
)

const { data, error } = useGetData({
Expand Down

0 comments on commit b660a70

Please sign in to comment.