Skip to content

Commit

Permalink
chore/#10: 주석정리
Browse files Browse the repository at this point in the history
  • Loading branch information
chrin05 committed Dec 18, 2024
1 parent 9c65d14 commit 5a53e73
Showing 1 changed file with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,11 @@ fun SignInRoute(
// userViewModel: UserViewModel = hiltViewModel(),
viewModel: SignInViewModel = hiltViewModel(),
) {
// val signInViewModel : SignInViewModel = hiltViewModel()
// val isSignInSuccessful by signInViewModel.isSignInSuccessful.collectAsStateWithLifecycle()
// val userName by userViewModel.preferenceUserName.collectAsStateWithLifecycle()
// val password by userViewModel.preferencePassword.collectAsStateWithLifecycle()
// val errorMessage by userViewModel.errorMessage.collectAsStateWithLifecycle()
// var passwordHidden by remember { mutableStateOf(true) }
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
val snackbarHostState = remember { SnackbarHostState() }
val focusManager = LocalFocusManager.current
val context = LocalContext.current

val uiState by viewModel.uiState.collectAsStateWithLifecycle()
val lifecycleOwner = LocalLifecycleOwner.current

LaunchedEffect(viewModel.sideEffect, lifecycleOwner) {
Expand All @@ -82,20 +76,6 @@ fun SignInRoute(
}
}

// LaunchedEffect(isSignInSuccessful) {
// if (isSignInSuccessful) {
// navigateToMy(isSignInSuccessful)
// signInViewModel.resetSignInState()
// }
// }
//
// LaunchedEffect(errorMessage) {
// if (errorMessage.isNotEmpty()) {
// Toast.makeText(context, errorMessage, Toast.LENGTH_SHORT).show()
// userViewModel.clearErrorMessage()
// }
// }

Scaffold(
snackbarHost = {
SnackbarHost(hostState = snackbarHostState)
Expand Down

0 comments on commit 5a53e73

Please sign in to comment.