Skip to content

Commit

Permalink
[STYLE] #95 : 인자 네이밍 수정 questionNumber -> currentQuestionNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 31, 2024
1 parent 2e13274 commit 80dbd6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ internal fun SurveyFormContent(
content: String,
question: String,
questionType: QuestionType,
time: LocalTime,
date: LocalDate,
questionNumber: Int,
timeDeadline: LocalTime,
dateDeadline: LocalDate,
currentQuestionNumber: Int,
totalQuestionNumber: Int,
timePickerState: TimePickerState,
showDatePicker: Boolean,
Expand Down Expand Up @@ -86,7 +86,7 @@ internal fun SurveyFormContent(
},
onQuestionChanged = onQuestionChanged,
onAddSurveyQuestionButtonClicked = onAddQuestionButtonClicked,
questionNumber = questionNumber,
currentQuestionNumber = currentQuestionNumber,
totalQuestionNumber = totalQuestionNumber,
onPreviousButtonClicked = {
onPreviousButtonClicked(SurveyFormState.INFORMATION)
Expand All @@ -104,8 +104,8 @@ internal fun SurveyFormContent(

SurveyFormState.DEADLINE -> {
SurveyDeadlineContent(
time = time,
date = date,
timeDeadline = timeDeadline,
dateDeadline = dateDeadline,
timePickerState = timePickerState,
showDatePicker = showDatePicker,
showTimePicker = showTimePicker,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import com.wap.wapp.core.model.survey.QuestionType
internal fun SurveyQuestionContent(
question: String,
questionType: QuestionType,
questionNumber: Int,
currentQuestionNumber: Int,
totalQuestionNumber: Int,
onQuestionChanged: (String) -> Unit,
onQuestionTypeChanged: (QuestionType) -> Unit,
Expand Down Expand Up @@ -75,7 +75,7 @@ internal fun SurveyQuestionContent(
)

SurveyQuestionNumberText(
questionNumber = questionNumber + 1,
questionNumber = currentQuestionNumber + 1,
totalQuestionNumber = totalQuestionNumber + 1,
onPreviousQuestionButtonClicked = onPreviousQuestionButtonClicked,
onNextQuestionButtonClicked = onNextQuestionButtonClicked,
Expand Down

0 comments on commit 80dbd6a

Please sign in to comment.