aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/no-results.test.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): rewrite PostsList componentArmand Philippot2023-11-131-12/+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 componentArmand Philippot2023-11-111-8/+5
| | | | | | * remove searchPage prop (the consumer should handle the submit) * change onSubmit type * use `useForm` hook to handle the form
* build: convert project to esmArmand Philippot2023-10-241-0/+1
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-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.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-1/+1
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* test: install and configure cypressArmand Philippot2022-06-021-1/+1
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* chore: replace Checkbox component with a BooleanField componentArmand Philippot2022-05-311-1/+1
| | | | | Checkbox and radio buttons are working the same way so I decided to group them in a same component.
* chore: add a search form when posts list prints no resultsArmand Philippot2022-05-241-0/+14