aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comments-list.fixture.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-29 21:29:45 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commit4f768afe543bbf9e1857c41d03804f8e37ab3512 (patch)
treed751219a147688b5665c51db3c8dbdca1f1345ee /src/components/organisms/layout/comments-list.fixture.tsx
parent9128c224c65f8f2a172b22a443ccb4573c7acd90 (diff)
refactor(components): rewrite List component
* change `items` prop to children * replace `kind` prop with `isHierarchical`, `isOrdered` & `isInline` props * add `hideMarker` prop * add `spacing` prop to control item spacing * move lists styles to Sass placeholders to avoid repeats because of headless WordPress
Diffstat (limited to 'src/components/organisms/layout/comments-list.fixture.tsx')
-rw-r--r--src/components/organisms/layout/comments-list.fixture.tsx106
1 files changed, 0 insertions, 106 deletions
diff --git a/src/components/organisms/layout/comments-list.fixture.tsx b/src/components/organisms/layout/comments-list.fixture.tsx
deleted file mode 100644
index 5842129..0000000
--- a/src/components/organisms/layout/comments-list.fixture.tsx
+++ /dev/null
@@ -1,106 +0,0 @@
-import { SingleComment } from '../../../types/app';
-
-export const comments: SingleComment[] = [
- {
- approved: true,
- content:
- 'Voluptas ducimus inventore. Libero ut et doloribus. Earum nostrum ab. Aliquam rem dolores omnis voluptate. Sunt aut ut et.',
- id: 1,
- meta: {
- author: {
- avatar: {
- alt: 'Author 1 avatar',
- height: 480,
- src: 'http://placeimg.com/640/480',
- width: 640,
- },
- name: 'Author 1',
- },
- date: '2021-04-03 18:04:11',
- },
- parentId: 0,
- replies: [],
- },
- {
- approved: true,
- content:
- 'Sit sed error quasi voluptatem velit voluptas aut. Aut debitis eveniet. Praesentium dolores quia voluptate vero quis dicta quasi vel. Aut voluptas accusantium ut aut quidem consectetur itaque laboriosam occaecati.',
- id: 2,
- meta: {
- author: {
- avatar: {
- alt: 'Author 2 avatar',
- height: 480,
- src: 'http://placeimg.com/640/480',
- width: 640,
- },
- name: 'Author 2',
- website: '#',
- },
- date: '2021-04-03 23:30:20',
- },
- parentId: 0,
- replies: [
- {
- approved: true,
- content:
- 'Vel ullam in porro tempore. Maiores quos quia magnam beatae nemo libero velit numquam. Sapiente aliquid cumque. Velit neque in adipisci aut assumenda voluptates earum. Autem esse autem provident in tempore. Aut distinctio dolor qui repellat et et adipisci velit aspernatur.',
- id: 4,
- meta: {
- author: {
- avatar: {
- alt: 'Author 4 avatar',
- height: 480,
- src: 'http://placeimg.com/640/480',
- width: 640,
- },
- name: 'Author 4',
- },
- date: '2021-04-03 23:04:24',
- },
- parentId: 2,
- replies: [],
- },
- {
- approved: true,
- content:
- 'Sed non omnis. Quam porro est. Quae tempore quae. Exercitationem eos non velit voluptatem velit voluptas iusto. Sit debitis qui ipsam quo asperiores numquam veniam praesentium ut.',
- id: 5,
- meta: {
- author: {
- avatar: {
- alt: 'Author 1 avatar',
- height: 480,
- src: 'http://placeimg.com/640/480',
- width: 640,
- },
- name: 'Author 1',
- },
- date: '2021-04-04 08:05:14',
- },
- parentId: 2,
- replies: [],
- },
- ],
- },
- {
- approved: false,
- content:
- 'Natus consequatur maiores aperiam dolore eius nesciunt ut qui et. Ab ea nobis est. Eaque dolor corrupti id aut. Impedit architecto autem qui neque rerum ab dicta dignissimos voluptates.',
- id: 3,
- meta: {
- author: {
- avatar: {
- alt: 'Author 3',
- height: 480,
- src: 'http://placeimg.com/640/480',
- width: 640,
- },
- name: 'Author 3',
- },
- date: '2021-09-13 13:24:54',
- },
- parentId: 0,
- replies: [],
- },
-];