From 17cecb2931588fa46640895ac0a3b28f03d3e7b4 Mon Sep 17 00:00:00 2001
From: Jason Zhu
Date: Wed, 30 Mar 2022 14:51:48 +1100
Subject: [PATCH] Chap05 -> Using route paramters -> Implementinig more of the
question page -> 8. Add when question asked and who asked into the Fragment
---
QandA/frontend/src/QuestionPage.tsx | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/QandA/frontend/src/QuestionPage.tsx b/QandA/frontend/src/QuestionPage.tsx
index 8033c79..4c71cd1 100644
--- a/QandA/frontend/src/QuestionPage.tsx
+++ b/QandA/frontend/src/QuestionPage.tsx
@@ -50,6 +50,17 @@ export const QuestionPage = () => {
>
{question.content}
+
+ {`Asked by ${
+ question.userName
+ } on ${question.created.toLocaleDateString()} ${question.created.toLocaleTimeString()}`}
+
)}