Skip to content

Commit

Permalink
[CHORE/#113] 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Jul 18, 2024
1 parent 6ffa8cf commit 76128d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data class HomeFilteringInfoResponseDto(
HomeFilteringInfoModel(
grade = this.grade,
workingPeriod = this.workingPeriod,
startYear = startYear,
startMonth = startMonth,
startYear = this.startYear,
startMonth = this.startMonth,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ import com.terning.feature.home.home.HomeSideEffect
import com.terning.feature.home.home.HomeViewModel
import com.terning.feature.home.home.navigation.navigateHome

const val MIN_INDEX = 0
const val MAX_WORKING_INDEX = 2
const val MAX_GRADE_INDEX = 3

@Composable
fun ChangeFilterRoute(
navController: NavController,
Expand Down Expand Up @@ -181,7 +185,7 @@ fun ChangeFilterScreen(
)
)
},
isEnabled = currentGrade in 0..3 && currentWorkingPeriod in 0..2
isEnabled = currentGrade in MIN_INDEX..MAX_GRADE_INDEX && currentWorkingPeriod in MIN_INDEX..MAX_WORKING_INDEX
)
}
}
Expand Down

0 comments on commit 76128d7

Please sign in to comment.