From bce45a28f0d0bc96a43e77d7aeb1ad1efb6e2fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D1=88=D0=B8=D0=BD=20=D0=9C=D0=B0=D0=BA=D1=81?= =?UTF-8?q?=D0=B8=D0=BC?= Date: Wed, 22 Nov 2023 22:54:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BB=D0=B8=D1=88=D0=BD=D0=B5=D0=B5=20=D1=83=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/example/labwork/pages/user/ProfileForm.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/com/example/labwork/pages/user/ProfileForm.kt b/app/src/main/java/com/example/labwork/pages/user/ProfileForm.kt index 74ec181..d9a9f36 100644 --- a/app/src/main/java/com/example/labwork/pages/user/ProfileForm.kt +++ b/app/src/main/java/com/example/labwork/pages/user/ProfileForm.kt @@ -31,7 +31,6 @@ import kotlinx.coroutines.launch @Composable fun ProfileForm(item: User, userDao: UserDao, navHostController: NavHostController) { - val isFormVisible = remember { mutableStateOf(false) } var email by remember { mutableStateOf(item.email) } var name by remember { mutableStateOf(item.name) } var password by remember { mutableStateOf(item.password) } @@ -39,7 +38,6 @@ fun ProfileForm(item: User, userDao: UserDao, navHostController: NavHostControll Column( modifier = Modifier.fillMaxWidth() ) { - // Поле ввода для бренда TextField( value = email, onValueChange = { email = it }, @@ -50,7 +48,6 @@ fun ProfileForm(item: User, userDao: UserDao, navHostController: NavHostControll colors = TextFieldDefaults.textFieldColors(backgroundColor = Color.White) ) - // Поле ввода для модели TextField( value = name, onValueChange = { name = it }, @@ -61,7 +58,6 @@ fun ProfileForm(item: User, userDao: UserDao, navHostController: NavHostControll colors = TextFieldDefaults.textFieldColors(backgroundColor = Color.White) ) - // Поле ввода для цвета TextField( value = password, onValueChange = { password = it }, @@ -86,7 +82,6 @@ fun ProfileForm(item: User, userDao: UserDao, navHostController: NavHostControll userDao.updateUser(newUser) } - isFormVisible.value = false navHostController.navigate("ListProduct") }, shape = RoundedCornerShape(15.dp) @@ -104,7 +99,6 @@ fun ProfileForm(item: User, userDao: UserDao, navHostController: NavHostControll .fillMaxWidth() .padding(9.dp), onClick = { - isFormVisible.value = false navHostController.navigate("ListProduct") }, shape = RoundedCornerShape(15.dp)