Skip to content

Commit

Permalink
[REFACTOR] #69 : DayOfWeek -> CalendarWeekDays
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Jan 2, 2024
1 parent fc17542 commit f027b29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ private fun CalendarBody(
selectedDate: LocalDate,
onDateSelected: (LocalDate) -> Unit,
) {
// DayOfWeek는 일,월,화,수,목,금,토일과 같은 요일을 나타내주는 Composable입니다.
DayOfWeek()
// CalendarWeekDays는 일,월,화,수,목,금,토일과 같은 요일을 나타내주는 Composable입니다.
CalendarWeekDays()

// 실질적인 동적인 달력 데이터가 들어가는 부분입니다.
CalendarMonthItem(
Expand All @@ -154,7 +154,7 @@ private fun CalendarBody(
}

@Composable
private fun DayOfWeek(modifier: Modifier = Modifier) {
private fun CalendarWeekDays(modifier: Modifier = Modifier) {
Row(modifier = modifier) {
DateUtil.DaysOfWeek.values().forEach { dayOfWeek ->
val textColor = when (dayOfWeek) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private fun CalendarBody(
eventsDate: List<LocalDate>,
onDateSelected: (LocalDate) -> Unit,
) {
DayOfWeek()
CalendarWeekDays()
CalendarMonthItem(
eventDates = eventsDate,
selectedDate = selectedDate,
Expand All @@ -168,7 +168,7 @@ private fun CalendarBody(
}

@Composable
private fun DayOfWeek(modifier: Modifier = Modifier) {
private fun CalendarWeekDays(modifier: Modifier = Modifier) {
Row(modifier = modifier) {
DaysOfWeek.values().forEach { dayOfWeek ->
val textColor = when (dayOfWeek) {
Expand Down

0 comments on commit f027b29

Please sign in to comment.