-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/hsgo/business change password api #209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고했습니다. comment 확인해주세요 !
onBackPressed: () -> Unit | ||
) { | ||
val context = LocalContext.current | ||
var password by remember { mutableStateOf("") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 변수를 State hoisting 해야될것 같습니다.
) { | ||
val context = LocalContext.current | ||
var password by remember { mutableStateOf("") } | ||
var passwordChecked by remember { mutableStateOf("") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 변수를 State hoisting 해야될것 같습니다.
): BaseViewModel() , ContainerHost<PasswordAuthenticationState, PasswordAuthenticationSideEffect> { | ||
override val container = container<PasswordAuthenticationState, PasswordAuthenticationSideEffect>(PasswordAuthenticationState()) | ||
|
||
private val _changePasswordContinuationState = SingleLiveEvent<ChangePasswordContinuationState>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
State Container가 있는데 SingleLiveEvent와 LiveDate를 쓸필요가 없을것 같습니다.
|
||
fun sendAuthCode(email: String){ | ||
if(isLoading.value == false){ | ||
viewModelScope.launchWithLoading { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
launchWIthLoading을 사용하지 말고 state에 loading상태를 선언해서 사용해보세요
data/src/main/java/in/koreatech/koin/data/di/network/NetworkModule.kt
Outdated
Show resolved
Hide resolved
email: String | ||
): Result<ChangePasswordContinuationState> { | ||
return when (email) { | ||
"" -> Result.success(ChangePasswordContinuationState.ToastNullEmail) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Result.failure이 아닐까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
di를 모듈에 따라 분리하였습니다.