mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Don't require verification on debug builds. (#2596)
* Don't require verification on debug builds. * Add a skip button in debug builds instead. * Fix preview tests.
This commit is contained in:
+15
@@ -20,6 +20,14 @@ import SwiftUI
|
||||
struct IdentityConfirmationScreen: View {
|
||||
@ObservedObject var context: IdentityConfirmationScreenViewModel.Context
|
||||
|
||||
var shouldShowSkipButton: Bool {
|
||||
#if DEBUG
|
||||
!ProcessInfo.isRunningTests
|
||||
#else
|
||||
false
|
||||
#endif
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
FullscreenDialog(topPadding: UIConstants.startScreenBreakerScreenTopPadding) {
|
||||
screenHeader
|
||||
@@ -81,6 +89,13 @@ struct IdentityConfirmationScreen: View {
|
||||
}
|
||||
.buttonStyle(.compound(.plain))
|
||||
}
|
||||
|
||||
if shouldShowSkipButton {
|
||||
Button(L10n.actionSkip) {
|
||||
context.send(viewAction: .skip)
|
||||
}
|
||||
.buttonStyle(.compound(.plain))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user