File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,18 @@ const Story = (props) => {
134134 fill = '#42779B'
135135 />
136136 </ svg >
137- < h2 > { story . Title } </ h2 >
137+ < span >
138+ < h2 style = { { marginBlockEnd : '0px' } } > { story . Title } </ h2 >
139+ < br />
140+ < h4 style = { { marginBlockStart : '0px' } } >
141+ Created At:{ ' ' }
142+ { new Date ( story . createdAt ) . toLocaleDateString ( undefined , {
143+ year : 'numeric' ,
144+ month : 'long' ,
145+ day : 'numeric'
146+ } ) }
147+ </ h4 >
148+ </ span >
138149 < div className = 'author-information' >
139150 < h4 >
140151 By:{ ' ' }
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ const userStory = {
8686 username
8787 }
8888 Category
89+ createdAt
8990 }
9091 }
9192 `
@@ -111,6 +112,7 @@ const userStory = {
111112 id
112113 url
113114 }
115+ createdAt
114116 }
115117 }
116118 ${ BASIC_STORY_INFO_FRAGMENT }
You can’t perform that action at this time.
0 commit comments