+
+
+
{story.title}
+
+ {story.tags.map(tag =>
+ {tag.title}
+ )}
+
+
+
+ {story.votes_count} votes
+
+
+ {story.comments_count} Comments
+
+
-
-
- {story.votes_count} votes
-
-
- 32 Comments
-
+
+
-
-
)
diff --git a/src/features/Posts/pages/PostDetailsPage/PostDetailsPage.stories.tsx b/src/features/Posts/pages/PostDetailsPage/PostDetailsPage.stories.tsx
index 65227f1..ba845b7 100644
--- a/src/features/Posts/pages/PostDetailsPage/PostDetailsPage.stories.tsx
+++ b/src/features/Posts/pages/PostDetailsPage/PostDetailsPage.stories.tsx
@@ -3,7 +3,7 @@ import { ModifyArgs } from 'src/utils/storybook/utils';
import PostDetailsPage from './PostDetailsPage';
export default {
- title: 'Posts/Post Details Page',
+ title: 'Posts/Post Details Page/Page',
component: PostDetailsPage,
argTypes: {
backgroundColor: { control: 'color' },
diff --git a/src/mocks/data/posts.ts b/src/mocks/data/posts.ts
index 9eda17a..a9983c0 100644
--- a/src/mocks/data/posts.ts
+++ b/src/mocks/data/posts.ts
@@ -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...',
diff --git a/src/utils/theme/colors.js b/src/utils/theme/colors.js
index fbdbf12..845e460 100644
--- a/src/utils/theme/colors.js
+++ b/src/utils/theme/colors.js
@@ -37,6 +37,7 @@ const colors = {
50: "#FFFAEB",
100: "#FEF0C7",
200: "#FEDF89",
+ 500: '#F59E0B'
},
// Custom Colors