diff --git a/QandA/frontend/src/HomePage.tsx b/QandA/frontend/src/HomePage.tsx index 4288b57..6498c5c 100644 --- a/QandA/frontend/src/HomePage.tsx +++ b/QandA/frontend/src/HomePage.tsx @@ -11,6 +11,9 @@ export const HomePage = () => ( {' '} {/* This button component is passed as children of Page */} - +
{question.title}
} + /> ); diff --git a/QandA/frontend/src/QuestionList.tsx b/QandA/frontend/src/QuestionList.tsx index 636d484..d9f85fe 100644 --- a/QandA/frontend/src/QuestionList.tsx +++ b/QandA/frontend/src/QuestionList.tsx @@ -4,13 +4,14 @@ import { QuestionData } from './QuestionsData'; interface Props { data: QuestionData[]; + renderItem?: (item: QuestionData) => JSX.Element; } -export const QuestionList = ({ data }: Props) => ( +export const QuestionList = ({ data, renderItem }: Props) => (