Skip to content

Commit c1d5e73

Browse files
fix: added date data to blog cards
Signed-off-by: Shriya-Chauhan <[email protected]>
1 parent e9876f0 commit c1d5e73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/navigation/BlogPostItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Link from 'next/link';
22
import type { Ref } from 'react';
33
import React, { forwardRef } from 'react';
4+
import moment from 'moment';
45
import TextTruncate from 'react-text-truncate';
56

67
import { BlogPostType } from '@/types/components/navigation/BlogPostType';
@@ -128,7 +129,7 @@ const BlogPostItem = ({ post, className = '', id = '' }: BlogPostItemProps, ref:
128129
</span>
129130
</Heading>
130131
<Paragraph typeStyle={ParagraphTypeStyle.sm} className='text-xs text-gray-500 dark:text-gray-400'>
131-
Data
132+
{post.date ? moment(post.date).format('MMMM D, YYYY') : ''}
132133
</Paragraph>
133134
</div>
134135
</div>

0 commit comments

Comments
 (0)