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( if (isVerifying) {
modifier = Modifier.fillMaxWidth(), // Placeholder so the 1st button keeps its vertical position
text = stringResource(R.string.screen_session_verification_they_dont_match), Spacer(modifier = Modifier.height(40.dp))
onClick = { eventSink(VerifySelfSessionViewEvents.DeclineVerification) }, } else {
) TextButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.screen_session_verification_they_dont_match),
onClick = { eventSink(VerifySelfSessionViewEvents.DeclineVerification) },
)
}
} }
} }
is Step.Completed -> { is Step.Completed -> {