Fix detekted issues.

This commit is contained in:
Benoit Marty
2022-12-12 15:56:45 +01:00
parent 3e8d11efce
commit e777bcc20a
3 changed files with 11 additions and 3 deletions

View File

@@ -79,13 +79,17 @@ fun LoginScreen(
fun LoginContent(
state: LoginViewState,
formState: LoginFormState,
modifier: Modifier = Modifier,
onChangeServer: () -> Unit = {},
onLoginChanged: (String) -> Unit = {},
onPasswordChanged: (String) -> Unit = {},
onSubmitClicked: () -> Unit = {},
onLoginWithSuccess: () -> Unit = {},
) {
Surface(color = MaterialTheme.colorScheme.background) {
Surface(
modifier = modifier,
color = MaterialTheme.colorScheme.background,
) {
Box(
modifier = Modifier
.fillMaxSize()

View File

@@ -62,11 +62,15 @@ fun ChangeServerScreen(
@Composable
fun ChangeServerContent(
state: ChangeServerViewState,
modifier: Modifier = Modifier,
onChangeServer: (String) -> Unit = {},
onChangeServerSubmit: () -> Unit = {},
onChangeServerSuccess: () -> Unit = {},
) {
Surface(color = MaterialTheme.colorScheme.background) {
Surface(
modifier = modifier,
color = MaterialTheme.colorScheme.background,
) {
val scrollState = rememberScrollState()
Box(
modifier = Modifier

View File

@@ -32,7 +32,7 @@ class ChangeServerViewModel(initialState: ChangeServerViewState) :
suspend {
val state = awaitState()
matrix.setHomeserver(state.homeserver)
}.execute { it ->
}.execute {
copy(changeServerAction = it)
}
}