aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comment.fixture.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): split Comment component into 3 componentsArmand Philippot2023-11-111-35/+0
| | | | | | | | | * add ApprovedComment, PendingComment and ReplyCommentForm components * let consumer handle reply form visibility * move structured data into article page (each article already has the comments data and already handle json ltd schema so I prefered to move the schema in the final consumer instead of adding a script element foreach comment)
* refactor(components): rewrite CommentForm componentArmand Philippot2023-11-111-4/+2
| | | | | | * remove `Notice` prop to handle it directly in the form * replace `saveComment` prop with `onSubmit` * use `useForm` hook to handle the form
* feat(components): add a Time componentArmand Philippot2023-11-111-4/+0
| | | | | | Instead of using helpers functions to format the date each time we need to use a time element, it makes more sense to create a new component dedicated to this task.
* refactor(components): rewrite DescriptionList componentArmand Philippot2023-11-111-0/+41
* add a `spacing` prop * replace `layout` prop with `isInline` prop * remove `items` prop (and classNames props) in favor of new components: Description, Group, Term * remove `withSeparator` prop (CSS content is announced by screen readers and Firefox/Safari have no support for alternative text so the consumer should add itself an element with `aria-hidden` if it need a separator) Be aware, Meta component and its consumers can be visually broken, they should be refactored before using them in production.