diff --git a/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/component/creation/ImageView.kt b/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/component/creation/ImageView.kt index 8baf2194..28f26308 100644 --- a/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/component/creation/ImageView.kt +++ b/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/component/creation/ImageView.kt @@ -51,7 +51,9 @@ internal fun ImageView( .align(Alignment.CenterHorizontally) .clip(RoundedCornerShape(24.dp)) .background(Grey50) - .noRippleClickable { viewModel.postIntent(CreationIntent.ClickImageView) } + .noRippleClickable { + viewModel.postIntent(CreationIntent.ClickImageView) + } ) { when (uiState.organizationImage) { Uri.EMPTY -> { diff --git a/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationSideEffect.kt b/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationSideEffect.kt index 500b750a..ba8ae291 100644 --- a/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationSideEffect.kt +++ b/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationSideEffect.kt @@ -5,5 +5,6 @@ import com.easyhz.noffice.core.common.base.UiSideEffect sealed class CreationSideEffect: UiSideEffect() { data object ClearFocus: CreationSideEffect() data object NavigateToGallery: CreationSideEffect() + data object NavigateToHome: CreationSideEffect() data class NavigateToInvitation(val invitationUrl: String, val imageUrl: String): CreationSideEffect() } \ No newline at end of file diff --git a/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationState.kt b/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationState.kt index 539cf457..a61f5984 100644 --- a/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationState.kt +++ b/feature/organization/src/main/java/com/easyhz/noffice/feature/organization/contract/creation/CreationState.kt @@ -17,6 +17,7 @@ data class CreationState( val organizationName: String, val category: List, val organizationImage: Uri, + val isEnabledGallery: Boolean, val endDate: LocalDate, val promotionCode: String, ): UiState() { @@ -28,6 +29,7 @@ data class CreationState( organizationName = "", category = Category.toState(), organizationImage = Uri.EMPTY, + isEnabledGallery = true, endDate = LocalDate.now(), promotionCode = "" )