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

This commit is contained in:
Benoit Marty
2024-11-07 18:39:46 +01:00
parent 084fa78072
commit 700d4c62af
@@ -342,6 +342,10 @@ private fun VerifySelfSessionBottomMenu(
} }
}, },
) )
if (isVerifying) {
// Placeholder so the 1st button keeps its vertical position
Spacer(modifier = Modifier.height(40.dp))
} else {
TextButton( TextButton(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.screen_session_verification_they_dont_match), text = stringResource(R.string.screen_session_verification_they_dont_match),
@@ -349,6 +353,7 @@ private fun VerifySelfSessionBottomMenu(
) )
} }
} }
}
is Step.Completed -> { is Step.Completed -> {
VerificationBottomMenu { VerificationBottomMenu {
Button( Button(