From 2260732575b26d73bace5313d94047d8c3aacbf4 Mon Sep 17 00:00:00 2001 From: TaejungKim <92737123+imtaejugkim@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:32:01 +0900 Subject: [PATCH] =?UTF-8?q?#13=20[Chore]=20:=20=EC=88=98=EC=A0=95=20MainAc?= =?UTF-8?q?tivity=20viewModel=20=EC=A0=84=EB=8B=AC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/sopt/and/presentation/MainActivity.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/sopt/and/presentation/MainActivity.kt b/app/src/main/java/org/sopt/and/presentation/MainActivity.kt index 8720edf..33942e8 100644 --- a/app/src/main/java/org/sopt/and/presentation/MainActivity.kt +++ b/app/src/main/java/org/sopt/and/presentation/MainActivity.kt @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material3.Scaffold import androidx.compose.ui.Modifier -import androidx.lifecycle.viewmodel.compose.viewModel import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable import androidx.navigation.compose.rememberNavController @@ -17,7 +16,6 @@ import org.sopt.and.presentation.login.LogInScreen import org.sopt.and.presentation.main.MainScreen import org.sopt.and.presentation.navigation.Screen import org.sopt.and.presentation.signup.SignUpScreen -import org.sopt.and.presentation.signup.UserViewModel import org.sopt.and.ui.theme.ANDANDROIDTheme @AndroidEntryPoint @@ -29,17 +27,16 @@ class MainActivity : ComponentActivity() { ANDANDROIDTheme { Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -> val navController = rememberNavController() - val userViewModel: UserViewModel = viewModel() NavHost( navController = navController, startDestination = Screen.LogIn.route, modifier = Modifier.padding(innerPadding) ) { composable(Screen.LogIn.route) { - LogInScreen(navController, userViewModel) + LogInScreen(navController) } composable(Screen.SignUp.route) { - SignUpScreen(navController, userViewModel) + SignUpScreen(navController) } composable(Screen.MainScreen.route) { MainScreen(navController)