diff --git a/src/components/Survey/index.tsx b/src/components/Survey/index.tsx index 2b77c7f..ed3d65d 100644 --- a/src/components/Survey/index.tsx +++ b/src/components/Survey/index.tsx @@ -8,8 +8,8 @@ function Survey({ title, description, coverImageUrl }: SurveyProps) { return ( <> cover -

{title}

-

{description}

+

{title}

+

{description}

); } diff --git a/src/components/SurveyList/index.tsx b/src/components/SurveyList/index.tsx index b9131a5..d005467 100644 --- a/src/components/SurveyList/index.tsx +++ b/src/components/SurveyList/index.tsx @@ -1,19 +1,21 @@ +import { useState } from 'react'; + +import Button from 'components/Button'; import SurveyComponent from 'components/Survey'; import { Survey } from 'types/Survey'; type SurveyListProps = { surveys: Survey[] }; function SurveyList({ surveys }: SurveyListProps) { + const [index, setIndex] = useState(0); + return ( -
- {surveys.map((survey) => { - return ( -
  • - -
  • - ); - })} -
    + <> + + + {/* TODO: For testing */} +