Skip to content

Commit

Permalink
[Fix] Fix login error
Browse files Browse the repository at this point in the history
A simple and temp fix about account input.
  • Loading branch information
sonder-joker committed Dec 30, 2021
1 parent 2168c33 commit d322705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/main/kotlin/ui/login/LoginDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import java.io.IOException

@Composable
fun LoginInterface() {
val (account, setAccount) = remember { mutableStateOf("") }
val (password, setPassword) = remember { mutableStateOf("") }
var account by remember { mutableStateOf("") }
var password by remember { mutableStateOf("") }
val host = remember { SnackbarHostState() }
var loadingState by remember { mutableStateOf(false) }
val scope = rememberCoroutineScope()
Expand Down Expand Up @@ -105,12 +105,12 @@ fun LoginInterface() {
AccountTextField(
modifier = Modifier.weight(1f),
account = account,
onAccountTextChange = setAccount,
onAccountTextChange = { account = it },
)
PasswordTextField(
modifier = Modifier.weight(1f),
password = password,
onPasswordTextChange = setPassword,
onPasswordTextChange = { password = it },
)
LoginButton(
modifier = Modifier.height(100.dp)
Expand Down

0 comments on commit d322705

Please sign in to comment.