diff --git a/QandA/frontend/src/Answer.tsx b/QandA/frontend/src/Answer.tsx index 49a10b4..66a4b6f 100644 --- a/QandA/frontend/src/Answer.tsx +++ b/QandA/frontend/src/Answer.tsx @@ -11,7 +11,7 @@ interface Props { export const Answer = ({ data }: Props) => (
diff --git a/QandA/frontend/src/AnswerList.tsx b/QandA/frontend/src/AnswerList.tsx index a77ad69..8e9a1fb 100644 --- a/QandA/frontend/src/AnswerList.tsx +++ b/QandA/frontend/src/AnswerList.tsx @@ -9,7 +9,7 @@ interface Props { data: AnswerData[]; } -export const AnswerList = ({ data }: Props) => { +export const AnswerList = ({ data }: Props) => ( ; -}; + +); diff --git a/QandA/frontend/src/QuestionPage.tsx b/QandA/frontend/src/QuestionPage.tsx index 0f94f46..90415f5 100644 --- a/QandA/frontend/src/QuestionPage.tsx +++ b/QandA/frontend/src/QuestionPage.tsx @@ -7,6 +7,7 @@ import { useParams } from 'react-router-dom'; import { Page } from './Page'; import { QuestionData, getQuestion } from './QuestionsData'; +import { AnswerList } from './AnswerList'; export const QuestionPage = () => { const [question, setQuestion] = React.useState(null); @@ -61,6 +62,7 @@ export const QuestionPage = () => { question.userName } on ${question.created.toLocaleDateString()} ${question.created.toLocaleTimeString()}`}
+ )}