Skip to content

Commit

Permalink
Merge pull request #8310 from cinaaaa/fix/type-mistake-documents
Browse files Browse the repository at this point in the history
[Doc] Fix typo in `useListContext` and `useChoicesContext` hooks
  • Loading branch information
WiXSL authored Oct 26, 2022
2 parents c290d3f + a59c82f commit a2a2b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/useChoicesContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const {
hasNextPage, // boolean, true if the current page is not the last one
// sorting
sort, // a sort object { field, order }, e.g. { field: 'date', order: 'DESC' }
setSort, // a callback to change the sort, e.g. setSort({ field: 'name', orfer: 'ASC' })
setSort, // a callback to change the sort, e.g. setSort({ field: 'name', order: 'ASC' })
// filtering
filter, // The permanent filter values, e.g. { title: 'lorem', nationality: 'fr' }
filterValues, // a dictionary of filter values, e.g. { title: 'lorem', nationality: 'fr' }
Expand Down
2 changes: 1 addition & 1 deletion docs/useListContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const {
hasNextPage, // boolean, true if the current page is not the last one
// sorting
sort, // a sort object { field, order }, e.g. { field: 'date', order: 'DESC' }
setSort, // a callback to change the sort, e.g. setSort({ field: 'name', orfer: 'ASC' })
setSort, // a callback to change the sort, e.g. setSort({ field: 'name', order: 'ASC' })
// filtering
filterValues, // a dictionary of filter values, e.g. { title: 'lorem', nationality: 'fr' }
displayedFilters, // a dictionary of the displayed filters, e.g. { title: true, nationality: true }
Expand Down

0 comments on commit a2a2b3b

Please sign in to comment.