mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:12:05 +00:00
Verification: always render the back button.
This commit is contained in:
+1
-5
@@ -70,11 +70,7 @@ fun IncomingVerificationView(
|
||||
TopAppBar(
|
||||
title = {},
|
||||
navigationIcon = {
|
||||
when {
|
||||
step is Step.Initial && !step.isWaiting -> Unit
|
||||
step is Step.Completed -> Unit
|
||||
else -> BackButton(onClick = { state.eventSink(IncomingVerificationViewEvents.GoBack) })
|
||||
}
|
||||
BackButton(onClick = { state.eventSink(IncomingVerificationViewEvents.GoBack) })
|
||||
},
|
||||
colors = topAppBarColors(containerColor = Color.Transparent),
|
||||
)
|
||||
|
||||
+2
-4
@@ -94,10 +94,8 @@ fun OutgoingVerificationView(
|
||||
topBar = {
|
||||
TopAppBar(
|
||||
title = {},
|
||||
navigationIcon = if (step != Step.Completed) {
|
||||
{ BackButton(onClick = ::cancelOrResetFlow) }
|
||||
} else {
|
||||
{}
|
||||
navigationIcon = {
|
||||
BackButton(onClick = ::cancelOrResetFlow)
|
||||
},
|
||||
colors = topAppBarColors(containerColor = Color.Transparent)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user