Skip to content

Commit 5191eb3

Browse files
committed
Added createdAt field in stories list
1 parent 9624bac commit 5191eb3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/StoriesList.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ const StoriesList = (props) => {
9696
<small>Category</small>
9797
<span className='category-text'>{story.Category}</span>
9898
</div>
99+
<div className='flex flex-column story-subcontent'>
100+
<small>Created At</small>
101+
<span className='category-text'>
102+
{new Date(story.createdAt).toLocaleDateString(undefined, {
103+
year: 'numeric',
104+
month: 'long',
105+
day: 'numeric'
106+
})}
107+
</span>
108+
</div>
99109
<div className='flex flex-column s-metas'>
100110
<span className='story-meta'>
101111
<EOS_ATTACHMENT className='eos-icons' />

0 commit comments

Comments
 (0)