diff --git a/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditUiState.kt b/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditUiState.kt index 323d980..499a649 100644 --- a/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditUiState.kt +++ b/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditUiState.kt @@ -1,5 +1,5 @@ package com.kusitms.presentation.model.profile.edit data class ProfileEditUiState( - val currentSelectedProfileFilter: String = "", + val currentSelectedProfileFilter: String = "기본 프로필", ) diff --git a/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditViewModel.kt b/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditViewModel.kt index ddcc1ce..4bf9725 100644 --- a/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditViewModel.kt +++ b/presentation/src/main/java/com/kusitms/presentation/model/profile/edit/ProfileEditViewModel.kt @@ -136,10 +136,6 @@ class ProfileEditViewModel @Inject constructor( _introduce.value = introduce } - fun updateSignInStatus(signInStatus: SignInStatus) { - _signInStatus.value = signInStatus - } - private fun validateFields() { _isAllFieldsValid.value = _major.value.isNotBlank() && diff --git a/presentation/src/main/java/com/kusitms/presentation/ui/profile/edit/ProfileEditScreen.kt b/presentation/src/main/java/com/kusitms/presentation/ui/profile/edit/ProfileEditScreen.kt index 405608b..fbf2148 100644 --- a/presentation/src/main/java/com/kusitms/presentation/ui/profile/edit/ProfileEditScreen.kt +++ b/presentation/src/main/java/com/kusitms/presentation/ui/profile/edit/ProfileEditScreen.kt @@ -48,7 +48,7 @@ fun ProfileEditScreen( val scrollState = rememberScrollState() val expanded by viewModel.expended.collectAsStateWithLifecycle() - + val uiState by viewModel.uiState.collectAsState() Column { KusitsmTopBarBackTextWithIcon( @@ -101,7 +101,11 @@ fun ProfileEditScreen( verticalArrangement = Arrangement.Top, horizontalAlignment = Alignment.Start ) { - ProfileAdd() + if (uiState.currentSelectedProfileFilter == "기본 프로필") { + ProfileBasic(viewModel) + } else { + ProfileAdd(viewModel) + } } } }