diff --git a/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementEventCard.kt b/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementEventCard.kt index c60eb62c..3e0f89ad 100644 --- a/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementEventCard.kt +++ b/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementEventCard.kt @@ -33,7 +33,7 @@ import com.wap.wapp.core.model.event.Event @Composable internal fun ManagementEventCard( eventsState: ManagementViewModel.EventsState, - onCardClicked: (String, String) -> Unit, + onCardClicked: (String) -> Unit, onAddEventButtonClicked: () -> Unit, ) { Card( @@ -65,11 +65,11 @@ internal fun ManagementEventCard( @Composable private fun ManagementEventContent( eventsState: ManagementViewModel.EventsState, - onCardClicked: (String, String) -> Unit, + onCardClicked: (String) -> Unit, onAddEventButtonClicked: () -> Unit, ) { when (eventsState) { - is ManagementViewModel.EventsState.Init -> { } + is ManagementViewModel.EventsState.Init -> {} is ManagementViewModel.EventsState.Loading -> CircleLoader( modifier = Modifier .fillMaxWidth() @@ -107,13 +107,13 @@ private fun ManagementEventContent( private fun ManagementEventItem( item: Event, cardColor: Color, - onCardClicked: (String, String) -> Unit, + onCardClicked: (String) -> Unit, ) { Card( shape = RoundedCornerShape(10.dp), modifier = Modifier .fillMaxSize() - .clickable { onCardClicked(item.startDateTime.toString(), item.eventId) }, + .clickable { onCardClicked(item.eventId) }, colors = CardDefaults.cardColors(containerColor = cardColor), ) { Row( diff --git a/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt b/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt index b2c43725..19be14d9 100644 --- a/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt +++ b/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt @@ -26,7 +26,7 @@ import kotlinx.coroutines.flow.collectLatest @Composable internal fun ManagementRoute( - navigateToEventEdit: (String, String) -> Unit, + navigateToEventEdit: (String) -> Unit, navigateToEventRegistration: () -> Unit, navigateToSurveyRegistration: () -> Unit, navigateToSurveyFormEdit: (String) -> Unit, @@ -88,7 +88,7 @@ internal fun ManagementScreen( snackBarHostState: SnackbarHostState, surveyFormsState: ManagementViewModel.SurveyFormsState, eventsState: ManagementViewModel.EventsState, - navigateToEventEdit: (String, String) -> Unit, + navigateToEventEdit: (String) -> Unit, navigateToEventRegistration: () -> Unit, navigateToSurveyRegistration: () -> Unit, navigateToSurveyFormEdit: (String) -> Unit, diff --git a/feature/management/src/main/java/com/wap/wapp/feature/management/navigation/ManagementNavigation.kt b/feature/management/src/main/java/com/wap/wapp/feature/management/navigation/ManagementNavigation.kt index b9d08b4f..3a5307f8 100644 --- a/feature/management/src/main/java/com/wap/wapp/feature/management/navigation/ManagementNavigation.kt +++ b/feature/management/src/main/java/com/wap/wapp/feature/management/navigation/ManagementNavigation.kt @@ -14,7 +14,7 @@ fun NavController.navigateToManagement(navOptions: NavOptions? = navOptions {}) } fun NavGraphBuilder.managementScreen( - navigateToEventEdit: (String, String) -> Unit, + navigateToEventEdit: (String) -> Unit, navigateToEventRegistration: () -> Unit, navigateToSurveyRegistration: () -> Unit, navigateToSurveyFormEdit: (String) -> Unit,