Verification: always render the back button.

This commit is contained in:
Benoit Marty 2026-01-08 16:19:46 +01:00
parent 070c80bd51
commit 1dfe26e67a
2 changed files with 13 additions and 19 deletions

View file

@ -70,11 +70,7 @@ fun IncomingVerificationView(
TopAppBar( TopAppBar(
title = {}, title = {},
navigationIcon = { navigationIcon = {
when { BackButton(onClick = { state.eventSink(IncomingVerificationViewEvents.GoBack) })
step is Step.Initial && !step.isWaiting -> Unit
step is Step.Completed -> Unit
else -> BackButton(onClick = { state.eventSink(IncomingVerificationViewEvents.GoBack) })
}
}, },
colors = topAppBarColors(containerColor = Color.Transparent), colors = topAppBarColors(containerColor = Color.Transparent),
) )

View file

@ -94,10 +94,8 @@ fun OutgoingVerificationView(
topBar = { topBar = {
TopAppBar( TopAppBar(
title = {}, title = {},
navigationIcon = if (step != Step.Completed) { navigationIcon = {
{ BackButton(onClick = ::cancelOrResetFlow) } BackButton(onClick = ::cancelOrResetFlow)
} else {
{}
}, },
colors = topAppBarColors(containerColor = Color.Transparent) colors = topAppBarColors(containerColor = Color.Transparent)
) )