Unverified sessions screen

This commit is contained in:
Aleksandrs Proskurins
2022-10-05 16:01:17 +03:00
parent 145cce76f2
commit 21225b408f
15 changed files with 83 additions and 41 deletions
@@ -81,11 +81,9 @@ class UserOtherSessionsViewModel: UserOtherSessionsViewModelType, UserOtherSessi
subtitle: VectorL10n.userSessionsOverviewSecurityRecommendationsInactiveInfo,
iconName: Asset.Images.userOtherSessionsInactive.name)
case .unverified:
// TODO:
return UserOtherSessionsHeaderViewData(title: nil,
subtitle: "",
iconName: nil)
return UserOtherSessionsHeaderViewData(title: VectorL10n.userSessionsOverviewSecurityRecommendationsUnverifiedTitle,
subtitle: VectorL10n.userOtherSessionUnverifiedSessionsHeaderSubtitle,
iconName: Asset.Images.userOtherSessionsUnverified.name)
}
}
}
@@ -18,7 +18,7 @@ import SwiftUI
struct UserOtherSessionsHeaderViewData: Hashable {
var title: String?
var subtitle: String
let subtitle: String
var iconName: String?
}
@@ -36,7 +36,6 @@ struct UserOtherSessionsHeaderView: View {
HStack (alignment: .top, spacing: 0) {
if let iconName = viewData.iconName {
Image(iconName)
.foregroundColor(.red)
.frame(width: 40, height: 40)
.background(theme.colors.background)
.clipShape(backgroundShape)