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:
parent
dbb3d2f9b5
commit
b71ce601d7
@ -50,6 +50,17 @@ export const QuestionPage = () => {
|
|||||||
>
|
>
|
||||||
{question.content}
|
{question.content}
|
||||||
</p>
|
</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>
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user