From 56b532ea8276f795b7296299482308c83d2332a8 Mon Sep 17 00:00:00 2001 From: tgyuu-An Date: Fri, 16 Feb 2024 22:07:45 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20#125=20:=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../registration/EventRegistrationViewModel.kt | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/feature/management-event/src/main/java/com/wap/wapp/feature/management/event/registration/EventRegistrationViewModel.kt b/feature/management-event/src/main/java/com/wap/wapp/feature/management/event/registration/EventRegistrationViewModel.kt index 927f4ba8..507562ce 100644 --- a/feature/management-event/src/main/java/com/wap/wapp/feature/management/event/registration/EventRegistrationViewModel.kt +++ b/feature/management-event/src/main/java/com/wap/wapp/feature/management/event/registration/EventRegistrationViewModel.kt @@ -54,17 +54,11 @@ class EventRegistrationViewModel @Inject constructor( MutableStateFlow(generateNowTime().plusHours(1)) val eventEndTime = _eventEndTime.asStateFlow() - fun setEventTitle(eventTitle: String) { - _eventTitle.value = eventTitle - } + fun setEventTitle(eventTitle: String) { _eventTitle.value = eventTitle } - fun setEventContent(eventContent: String) { - _eventContent.value = eventContent - } + fun setEventContent(eventContent: String) { _eventContent.value = eventContent } - fun setEventLocation(eventLocation: String) { - _eventLocation.value = eventLocation - } + fun setEventLocation(eventLocation: String) { _eventLocation.value = eventLocation } fun setEventStartDate(eventDate: LocalDate) { if (!isValidStartDate(eventDate)) { @@ -74,9 +68,7 @@ class EventRegistrationViewModel @Inject constructor( _eventStartDate.value = eventDate } - fun setEventStartTime(eventTime: LocalTime) { - _eventStartTime.value = eventTime - } + fun setEventStartTime(eventTime: LocalTime) { _eventStartTime.value = eventTime } fun setEventEndDate(eventDate: LocalDate) { if (!isValidEndDate(eventDate)) {