Skip to content

Commit

Permalink
[FEAT/#218] 캘린더 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Sep 3, 2024
1 parent aa2531f commit b7d263c
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -48,8 +49,6 @@ fun FilteringThreeRoute(
with(viewModel) {
updateGrade(grade = grade)
updateWorkingPeriod(workingPeriod = workingPeriod)
updateStartYear(startYear = Calendar.getInstance().currentYear)
updateStartMonth(startMonth = Calendar.getInstance().currentMonth)
}
}

Expand All @@ -73,8 +72,8 @@ fun FilteringThreeRoute(

FilteringThreeScreen(
navigateUp = viewModel::navigateUp,
chosenYear = state.startYear,
chosenMonth = state.startMonth,
chosenYear = Calendar.getInstance().currentYear,
chosenMonth = Calendar.getInstance().currentMonth,
onNextClick = viewModel::postFilteringWithServer,
onYearChosen = { viewModel.updateStartYear(it) },
onMonthChosen = { viewModel.updateStartMonth(it) }
Expand Down Expand Up @@ -124,14 +123,14 @@ fun FilteringThreeScreen(
start = 24.dp,
)
)
Spacer(modifier = Modifier.weight(1f))
Spacer(modifier = Modifier.height(61.dp))
YearMonthPicker(
chosenYear = chosenYear,
chosenMonth = chosenMonth,
onYearChosen = { onYearChosen(it) },
onMonthChosen = { onMonthChosen(it) },
)
Spacer(modifier = Modifier.weight(7f))
Spacer(modifier = Modifier.weight(1f))
RectangleButton(
style = TerningTheme.typography.button0,
paddingVertical = 20.dp,
Expand Down

0 comments on commit b7d263c

Please sign in to comment.