| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | refactor(components): rewrite PostsList component | Armand Philippot | 2023-11-13 | 1 | -15/+0 |
| | | | | | | | | | | | | | | | | * remove NoResults component and move logic to Search page * add a usePostsList hook * remove Pagination from PostsList (it is only used if javascript is disabled and not on every posts list) * replace `byYear` prop with `sortByYear` * replace `loadMore` prop with `onLoadMore` * remove `showLoadMoreBtn` (we can use `loadMore` prop instead to determine if we need to display the button) * replace `titleLevel` prop with `headingLvl` * add `firstNewResult` prop to handle focus on the new results when loading more article (we should not focus a useless span but the item directly) | ||||
| * | refactor(components): rewrite SearchForm component | Armand Philippot | 2023-11-11 | 1 | -16/+3 |
| | | | | | | | * remove searchPage prop (the consumer should handle the submit) * change onSubmit type * use `useForm` hook to handle the form | ||||
| * | refactor: use named export for everything except pages | Armand Philippot | 2023-09-20 | 1 | -1/+1 |
| | | | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements. | ||||
| * | chore: add a search form when posts list prints no results | Armand Philippot | 2022-05-24 | 1 | -0/+28 |
