Skip to content
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

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

hsgo2430
Copy link
Contributor

di를 모듈에 따라 분리하였습니다.

@hsgo2430 hsgo2430 requested a review from a team as a code owner March 31, 2024 15:40
Copy link
Contributor

@yunjaena yunjaena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고했습니다. comment 확인해주세요 !

business/build.gradle.kts Show resolved Hide resolved
business/build.gradle.kts Outdated Show resolved Hide resolved
onBackPressed: () -> Unit
) {
val context = LocalContext.current
var password by remember { mutableStateOf("") }
Copy link
Contributor

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("") }
Copy link
Contributor

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>()
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

launchWIthLoading을 사용하지 말고 state에 loading상태를 선언해서 사용해보세요

core/build.gradle Outdated Show resolved Hide resolved
email: String
): Result<ChangePasswordContinuationState> {
return when (email) {
"" -> Result.success(ChangePasswordContinuationState.ToastNullEmail)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Result.failure이 아닐까요?

Copy link
Member

@skdud0629 skdud0629 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@yunjaena yunjaena merged commit 61594fc into develop Apr 3, 2024
Copy link
Member

@skdud0629 skdud0629 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants