aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comment.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-15/+12
| | | | | | 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-5/+5
| | | | | | 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.
* chore: make Links and Images compliant with Next.js 13Armand Philippot2023-01-231-6/+11
|
* fix(comments): load all comments on a postArmand Philippot2022-08-211-2/+2
| | | | | | | | | Previously, only the first 10 comments was loaded. So I update the fetching method to retrieve all the comments on a post. Also, I choose to order comments on client side because of a bug with WPGraphQL. Finally, I renamed the Comment type to SingleComment to avoid conflict with existing types.
* test: fix theme toggle and comment testsArmand Philippot2022-05-241-25/+2
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-49/+49
|
* chore: add Article pagesArmand Philippot2022-05-151-6/+8
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-31/+52
| | | | | | The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
* chore: add a CommentsList componentArmand Philippot2022-04-221-4/+0
|
* chore: add a Comment componentArmand Philippot2022-04-211-0/+175