aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comment.fixture.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-07 16:55:58 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commitbd9c9ae7e2ae973969569dd434836de9f38b07d4 (patch)
tree84905097c4f2c2db36794c20910e3893189a65e1 /src/components/organisms/layout/comment.fixture.ts
parentc9c1c90b30e243563bb4f731da15b3fe657556d2 (diff)
refactor(components): split Comment component into 3 components
* 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)
Diffstat (limited to 'src/components/organisms/layout/comment.fixture.ts')
-rw-r--r--src/components/organisms/layout/comment.fixture.ts35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/components/organisms/layout/comment.fixture.ts b/src/components/organisms/layout/comment.fixture.ts
deleted file mode 100644
index 84aa20e..0000000
--- a/src/components/organisms/layout/comment.fixture.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import type { UserCommentProps } from './comment';
-
-export const author = {
- avatar: {
- alt: 'Author avatar',
- height: 480,
- src: 'http://placeimg.com/640/480',
- width: 640,
- },
- name: 'Armand',
- website: 'https://www.armandphilippot.com/',
-};
-
-export const content =
- 'Harum aut cumque iure fugit neque sequi cupiditate repudiandae laudantium. Ratione aut assumenda qui illum voluptas accusamus quis officiis exercitationem. Consectetur est harum eius perspiciatis officiis nihil. Aut corporis minima debitis adipisci possimus debitis et.';
-
-export const date = '2021-04-03 23:04:24';
-
-export const meta = {
- author,
- date,
-};
-
-export const id = 5;
-
-export const saveComment = () => undefined;
-
-export const data: UserCommentProps = {
- approved: true,
- content,
- id,
- meta,
- parentId: 0,
- onSubmit: saveComment,
-};