From f027b29b8e4e58ec28015a189840fd968a223340 Mon Sep 17 00:00:00 2001 From: tgyuu-An Date: Tue, 2 Jan 2024 18:39:25 +0900 Subject: [PATCH] [REFACTOR] #69 : DayOfWeek -> CalendarWeekDays --- .../registration/component/WappDatePickerDialog.kt | 6 +++--- .../src/main/java/com/wap/wapp/feature/notice/Calendar.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/feature/management/src/main/java/com/wap/wapp/feature/management/registration/component/WappDatePickerDialog.kt b/feature/management/src/main/java/com/wap/wapp/feature/management/registration/component/WappDatePickerDialog.kt index 239dea1d..45de1bcc 100644 --- a/feature/management/src/main/java/com/wap/wapp/feature/management/registration/component/WappDatePickerDialog.kt +++ b/feature/management/src/main/java/com/wap/wapp/feature/management/registration/component/WappDatePickerDialog.kt @@ -143,8 +143,8 @@ private fun CalendarBody( selectedDate: LocalDate, onDateSelected: (LocalDate) -> Unit, ) { -// DayOfWeek는 일,월,화,수,목,금,토일과 같은 요일을 나타내주는 Composable입니다. - DayOfWeek() +// CalendarWeekDays는 일,월,화,수,목,금,토일과 같은 요일을 나타내주는 Composable입니다. + CalendarWeekDays() // 실질적인 동적인 달력 데이터가 들어가는 부분입니다. CalendarMonthItem( @@ -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) { diff --git a/feature/notice/src/main/java/com/wap/wapp/feature/notice/Calendar.kt b/feature/notice/src/main/java/com/wap/wapp/feature/notice/Calendar.kt index 6ecc2a95..42b1c869 100644 --- a/feature/notice/src/main/java/com/wap/wapp/feature/notice/Calendar.kt +++ b/feature/notice/src/main/java/com/wap/wapp/feature/notice/Calendar.kt @@ -159,7 +159,7 @@ private fun CalendarBody( eventsDate: List, onDateSelected: (LocalDate) -> Unit, ) { - DayOfWeek() + CalendarWeekDays() CalendarMonthItem( eventDates = eventsDate, selectedDate = selectedDate, @@ -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) {