Chap05 -> Using route paramters -> Implementinig more of the question page -> 8. Add when question asked and who asked into the Fragment

This commit is contained in:
Jason Zhu 2022-03-30 14:51:48 +11:00
parent 527d00be86
commit 17cecb2931

View File

@ -50,6 +50,17 @@ export const QuestionPage = () => {
>
{question.content}
</p>
<div
css={css`
font-size: 12px;
font-style: italic;
color: ${gray3};
`}
>
{`Asked by ${
question.userName
} on ${question.created.toLocaleDateString()} ${question.created.toLocaleTimeString()}`}
</div>
</React.Fragment>
)}
</div>