diff --git a/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayCell.swift b/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayCell.swift index 3e64771..8505e5b 100644 --- a/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayCell.swift +++ b/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayCell.swift @@ -117,7 +117,7 @@ final class CalendarDayCell: UICollectionViewCell { // 인디케이터 높이 결정 // 월급/휴가 레이블이 있으면 18pt, 근무 점이면 14pt, 없으면 0 - let hasLabel = schedule.events.contains(.payday) || schedule.contentType == .vacation + let hasLabel = schedule.events.contains(.payday) || schedule.events.contains(.publicHoliday) || schedule.contentType == .vacation let hasDot = schedule.contentType == .work && schedule.status != .none if hasLabel { setIndicatorHeight(18) diff --git a/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayIndicatorView.swift b/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayIndicatorView.swift index 68bce96..b33c884 100644 --- a/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayIndicatorView.swift +++ b/Moa/Moa/Features/Home/History/Calendar/Components/Calendar/CalendarDayIndicatorView.swift @@ -65,16 +65,23 @@ final class CalendarDayIndicatorView: UIView { reset() guard let schedule else { return } - let hasPayday = schedule.events.contains(.payday) - let isVacation = schedule.contentType == .vacation - let isWork = schedule.contentType == .work + let hasPayday = schedule.events.contains(.payday) + let hasHoliday = schedule.events.contains(.publicHoliday) + let isVacation = schedule.contentType == .vacation + let isWork = schedule.contentType == .work if hasPayday && isVacation { - showDualLabel(primary: "월급", secondary: "휴가") + showDualLabel(primary: "월급", secondary: "연차") + } else if hasPayday && hasHoliday { + showDualLabel(primary: "월급", secondary: "공휴일") } else if hasPayday { showSingleLabel("월급", color: AppColor.IconAndText.green) + } else if hasHoliday && isVacation { + showSingleLabel("공휴일", color: AppColor.IconAndText.mediumEmphasis) } else if isVacation { - showSingleLabel("휴가", color: AppColor.IconAndText.mediumEmphasis) + showSingleLabel("연차", color: AppColor.IconAndText.mediumEmphasis) + } else if hasHoliday { + showSingleLabel("공휴일", color: AppColor.IconAndText.mediumEmphasis) } else if isWork { switch schedule.status { case .completed: