Skip to content

[Task] TestQuestion 컴포넌트 (4지선다 문제) #83

Description

@DDINGJOO

상위 Story

목표

4지선다 형식의 시험 문제 컴포넌트 구현

화면 구성

┌─────────────────────────────────────────────────────┐
│                      사과                            │
│            다음 중 올바른 영어 단어는?               │
└─────────────────────────────────────────────────────┘

① apple    ② banana    ③ orange    ④ grape

Props

{
  question: {
    questionId: number,
    wordId: string,
    question: string,  // 문제 텍스트
    options: string[], // 4개 선택지
    type: 'KOREAN_TO_ENGLISH' | 'ENGLISH_TO_KOREAN'
  },
  selectedAnswer: string | null,
  onSelect: (answer: string) => void,
  showResult: boolean,
  correctAnswer: string,
}

상태

  • 미선택: 기본 스타일
  • 선택됨: primary 색상
  • 결과 표시: 정답=초록, 오답=빨강

MUI 컴포넌트

  • Paper, Card
  • RadioGroup, Radio
  • Typography

완료 조건

  • TestQuestion 컴포넌트 구현
  • 4개 선택지 표시
  • 선택 상태 표시
  • 결과 모드 (정답/오답 표시)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions