Skip to content

Commit

Permalink
[FEAT/#309] 바뀐 값을 원래의 값으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Dec 19, 2024
1 parent 523b60a commit 39f647b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ fun HomeFilteringBottomSheet(

// todo: null 처리 제대로
HomeYearMonthPicker(
chosenYear = if (isYearNull) null else currentStartYear,
chosenMonth = if (isMonthNull) null else currentStartMonth,
chosenYear = defaultStartYear ?: Calendar.getInstance().currentYear,
chosenMonth = defaultStartMonth ?: Calendar.getInstance().currentMonth,
onYearChosen = { year, isNull ->
isYearNull = isNull
if (year != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class PickerState {

@Composable
fun rememberPickerState() = remember { PickerState() }

@Composable
fun HomeYearMonthPicker(
modifier: Modifier = Modifier,
Expand Down

0 comments on commit 39f647b

Please sign in to comment.