Code review fixes

This commit is contained in:
paleksandrs
2022-11-03 13:38:23 +02:00
parent 246e2b01c7
commit 2ed307bf1f
2 changed files with 9 additions and 19 deletions
@@ -69,18 +69,12 @@ struct UserSessionOverview: View {
}
.accessibilityIdentifier(VectorL10n.manageSessionRename)
}
if #available(iOS 15, *) {
Button(role: .destructive) { viewModel.send(viewAction: .logoutOfSession) } label: {
Label(VectorL10n.signOut, systemImage: "rectangle.portrait.and.arrow.right.fill")
}
.accessibilityIdentifier(VectorL10n.signOut)
} else {
Button { viewModel.send(viewAction: .logoutOfSession) } label: {
Label(VectorL10n.signOut, systemImage: "rectangle.righthalf.inset.fill.arrow.right")
}
.accessibilityIdentifier(VectorL10n.signOut)
DestructiveButton {
viewModel.send(viewAction: .logoutOfSession)
} label: {
Label(VectorL10n.signOut, systemImage: "rectangle.portrait.and.arrow.right.fill")
}
.accessibilityIdentifier(VectorL10n.signOut)
} label: {
Image(systemName: "ellipsis")
.foregroundColor(theme.colors.secondaryContent)