From 8eef2633b61a559496b95823692f4c344d604552 Mon Sep 17 00:00:00 2001 From: Sina Farhadi Date: Tue, 25 Oct 2022 14:05:04 +0330 Subject: [PATCH 1/2] fix: typo mistake 'orfer' to 'order' Just a simple type mistake in the documentation part --- docs/useListContext.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/useListContext.md b/docs/useListContext.md index 551fdded7cd..33b5a99dcb1 100644 --- a/docs/useListContext.md +++ b/docs/useListContext.md @@ -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 } From a59c82f31f56a2d94cac2fee7a204a4daded9225 Mon Sep 17 00:00:00 2001 From: Sina Farhadi Date: Wed, 26 Oct 2022 15:10:20 +0330 Subject: [PATCH 2/2] fix: type mistake 'orfer' --- docs/useChoicesContext.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/useChoicesContext.md b/docs/useChoicesContext.md index 52158a34e27..2e97b6baa70 100644 --- a/docs/useChoicesContext.md +++ b/docs/useChoicesContext.md @@ -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' }