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()