Use function ref.

This commit is contained in:
Benoit Marty 2023-06-09 17:45:51 +02:00
parent 9562600be4
commit 5bec246034
2 changed files with 4 additions and 12 deletions

View file

@ -98,9 +98,7 @@ fun ConfirmAccountProviderView(
.testTag(TestTags.loginContinue)
)
TextButton(
onClick = {
onChange()
},
onClick = onChange,
enabled = true,
modifier = Modifier
.fillMaxWidth()

View file

@ -120,9 +120,7 @@ private fun OnBoardingButtons(
ButtonColumnMolecule(modifier = modifier) {
if (state.canLoginWithQrCode) {
Button(
onClick = {
onSignInWithQrCode()
},
onClick = onSignInWithQrCode,
enabled = true,
modifier = Modifier
.fillMaxWidth()
@ -136,9 +134,7 @@ private fun OnBoardingButtons(
}
}
Button(
onClick = {
onSignIn()
},
onClick = onSignIn,
enabled = true,
modifier = Modifier
.fillMaxWidth()
@ -148,9 +144,7 @@ private fun OnBoardingButtons(
}
if (state.canCreateAccount) {
OutlinedButton(
onClick = {
onCreateAccount()
},
onClick = onCreateAccount,
enabled = true,
modifier = Modifier
.fillMaxWidth()