feat: added comments section to story/question content page

This commit is contained in:
MTG2000
2022-04-30 12:54:42 +03:00
parent 8be941f584
commit b2209db14d
10 changed files with 60 additions and 41 deletions

View File

@@ -84,7 +84,7 @@ export let posts = {
title: 'Digital Editor, Mars Review of Books',
body: postBody,
cover_image: getCoverImage(),
comments_count: 31,
comments_count: 3,
date: getDate(),
votes_count: 120,
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In odio libero accumsan...',
@@ -95,7 +95,7 @@ export let posts = {
{ id: 3, title: "guide" },
],
author: getAuthor(),
comments: generatePostComments(),
comments: generatePostComments(3),
},
] as Story[],
@@ -128,7 +128,7 @@ export let posts = {
id: 33,
title: 'Digital Editor, Mars Review of Books',
body: postBody,
answers_count: 31,
answers_count: 3,
date: getDate(),
votes_count: 70,
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In odio libero accumsan...',