mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:31:27 +00:00
Add a logout option on the root of IdentityVerification screen.
This commit is contained in:
committed by
Stefan Ceriu
parent
904045f178
commit
32e1e1aa24
+10
-1
@@ -34,9 +34,9 @@ struct IdentityConfirmationScreen: View {
|
||||
} bottomContent: {
|
||||
actionButtons
|
||||
}
|
||||
.toolbar { toolbar }
|
||||
.background()
|
||||
.backgroundStyle(.compound.bgCanvasDefault)
|
||||
.navigationBarHidden(true)
|
||||
.navigationBarBackButtonHidden(true)
|
||||
.interactiveDismissDisabled()
|
||||
}
|
||||
@@ -104,6 +104,15 @@ struct IdentityConfirmationScreen: View {
|
||||
.padding(.vertical, 14)
|
||||
}
|
||||
}
|
||||
|
||||
@ToolbarContentBuilder
|
||||
var toolbar: some ToolbarContent {
|
||||
ToolbarItem(placement: .destructiveAction) {
|
||||
Button(L10n.actionSignout) {
|
||||
context.send(viewAction: .logout)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
Reference in New Issue
Block a user