Skip to content

Commit

Permalink
feat: GeneralQuiz,OwnerQuiz의 Preview에 공통 활용되는 Questions 데이터 구성(#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengcon committed Jan 9, 2025
1 parent ad80fe5 commit 265147d
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
import kr.boostcamp_2024.course.designsystem.ui.theme.WeQuizTheme
import kr.boostcamp_2024.course.designsystem.ui.theme.component.WeQuizLocalRoundedImage
import kr.boostcamp_2024.course.designsystem.ui.theme.component.WeQuizRightChatBubble
import kr.boostcamp_2024.course.domain.model.BlankQuestion
import kr.boostcamp_2024.course.domain.model.ChoiceQuestion
import kr.boostcamp_2024.course.domain.model.QuestionResult
import kr.boostcamp_2024.course.domain.model.QuizResult
Expand Down Expand Up @@ -270,6 +271,35 @@ fun QuestionResultItem(
}
}

val quizResultPreviewQuestions =
listOf(
ChoiceQuestion(
id = "1",
title = "1번 문제",
solution = null,
description = "1번 문제 설명",
answer = 1,
choices = listOf(),
userAnswers = listOf(),
),
ChoiceQuestion(
id = "2",
title = "2번 문제",
solution = null,
description = "2번 문제 설명",
answer = 1,
choices = listOf(),
userAnswers = listOf(),
),
BlankQuestion(
id = "3",
title = "3번 문제 (낱말 맞추기)",
solution = null,
userAnswers = emptyList(),
questionContent = emptyList(),
),
)

@Preview(
showBackground = true,
uiMode = Configuration.UI_MODE_NIGHT_YES,
Expand Down

0 comments on commit 265147d

Please sign in to comment.