From 197ea96cd20791d119b288d1a1d997fecdde8e6e Mon Sep 17 00:00:00 2001 From: beaulaton Date: Fri, 21 Mar 2025 11:45:41 +0100 Subject: [PATCH] =?UTF-8?q?suppression=20des=20services=20pass=C3=A9s=20en?= =?UTF-8?q?=20param=C3=A8tre=20=C3=A0=20login?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/what_the_fantasy/ui/navigations/AppNavigator.kt | 2 -- .../java/com/example/what_the_fantasy/ui/screens/LoginPage.kt | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/navigations/AppNavigator.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/navigations/AppNavigator.kt index 27546de..fd2daed 100644 --- a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/navigations/AppNavigator.kt +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/navigations/AppNavigator.kt @@ -13,7 +13,6 @@ import androidx.navigation.compose.rememberNavController import androidx.navigation.toRoute import com.example.what_the_fantasy.data.services.ServicesStub import com.example.what_the_fantasy.ui.screens.* -import com.example.what_the_fantasy.ui.theme.colorNavBar import kotlinx.serialization.Serializable @Serializable @@ -78,7 +77,6 @@ fun AppNavigator() { popUpTo(Login) { inclusive = true } } }, - services = services ) } composable { diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/LoginPage.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/LoginPage.kt index 58d610f..7a14869 100644 --- a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/LoginPage.kt +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/LoginPage.kt @@ -45,8 +45,7 @@ import com.example.what_the_fantasy.ui.theme.gradienBox import com.example.what_the_fantasy.ui.viewModels.AuthUserViewModel @Composable -fun LoginPage(navControllerSignUp: () -> Unit, navControllerProfil: (Int) -> Unit, services : IServices) { - val users = services.getAllUsers() +fun LoginPage(navControllerSignUp: () -> Unit, navControllerProfil: (Int) -> Unit) { val authUserVM : AuthUserViewModel = viewModel() val authState by authUserVM.userState.collectAsState()