Skip to content

Commit

Permalink
FEAT: 기본 프로필 / 추가 프로필 구분 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
arinming committed Feb 7, 2024
1 parent 186a4b8 commit f18dbf1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.kusitms.presentation.model.profile.edit

data class ProfileEditUiState(
val currentSelectedProfileFilter: String = "",
val currentSelectedProfileFilter: String = "기본 프로필",
)
Original file line number Diff line number Diff line change
Expand Up @@ -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() &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fun ProfileEditScreen(
val scrollState = rememberScrollState()

val expanded by viewModel.expended.collectAsStateWithLifecycle()

val uiState by viewModel.uiState.collectAsState()

Column {
KusitsmTopBarBackTextWithIcon(
Expand Down Expand Up @@ -101,7 +101,11 @@ fun ProfileEditScreen(
verticalArrangement = Arrangement.Top,
horizontalAlignment = Alignment.Start
) {
ProfileAdd()
if (uiState.currentSelectedProfileFilter == "기본 프로필") {
ProfileBasic(viewModel)
} else {
ProfileAdd(viewModel)
}
}
}
}
Expand Down

0 comments on commit f18dbf1

Please sign in to comment.