refactor: move configApi to SearchContext

Signed-off-by: Enrico Alvarenga <enricomalvarenga@gmail.com>
This commit is contained in:
Enrico Alvarenga
2023-08-02 10:44:04 -07:00
committed by Camila Belo
parent 2ddf648a01
commit 40de4a7210
5 changed files with 98 additions and 110 deletions
+4 -4
View File
@@ -21,12 +21,12 @@ export interface Config {
*/
search?: {
/**
* An object representing the initial state configuration for the SearchPage
* component. By configuring and modifying the values of the initialState
* object attributes, you can customize the initial state of the search component
* An object representing the default search query configuration.
* By configuring and modifying the values of this object,
* you can customize the default values of the search component
* and define how it behaves when it is first loaded or reset.
*/
initialState?: {
query?: {
/**
* A number indicating the maximum number of results to be returned
* per page during pagination.