Skip to content

Commit

Permalink
varをトリ除く
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Jun 17, 2024
1 parent 0a0b586 commit 7666e80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions torisetsu/src/jsMain/kotlin/core/ComposeQuiz.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class ComposeQuiz : Quiz {
),
),
)
override var currentQuizId: MutableState<Int> = mutableStateOf(0)
override var currentQuizNumber: MutableState<Int> = mutableStateOf(1)
override val currentQuizId: MutableState<Int> = mutableStateOf(0)
override val currentQuizNumber: MutableState<Int> = mutableStateOf(1)

override fun onClickNext(answerOption: AnswerOption, onClickFinish: (nextId: Int) -> Unit) {
if (answerOption.isFinish) {
Expand Down
4 changes: 2 additions & 2 deletions torisetsu/src/jsMain/kotlin/core/Quiz.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import androidx.compose.runtime.MutableState
import data.AnswerOption

interface Quiz {
var currentQuizId: MutableState<Int>
var currentQuizNumber: MutableState<Int>
val currentQuizId: MutableState<Int>
val currentQuizNumber: MutableState<Int>
fun onClickNext(answerOption: AnswerOption, onClickFinish: (nextId: Int) -> Unit)
fun getAnswerOptions(): List<AnswerOption>
fun getQuestionText(): String
Expand Down

0 comments on commit 7666e80

Please sign in to comment.