Hide "They don't match" button when verifying.

This commit is contained in:
Benoit Marty
2024-11-07 18:39:46 +01:00
parent 4d0b2dd53b
commit df3bd31118

View File

@@ -342,11 +342,16 @@ private fun VerifySelfSessionBottomMenu(
}
},
)
TextButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.screen_session_verification_they_dont_match),
onClick = { eventSink(VerifySelfSessionViewEvents.DeclineVerification) },
)
if (isVerifying) {
// Placeholder so the 1st button keeps its vertical position
Spacer(modifier = Modifier.height(40.dp))
} else {
TextButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.screen_session_verification_they_dont_match),
onClick = { eventSink(VerifySelfSessionViewEvents.DeclineVerification) },
)
}
}
}
is Step.Completed -> {