Show bottom sheet in user other sessions

This commit is contained in:
Alfonso Grillo
2022-10-26 16:29:57 +02:00
parent fc0d081f28
commit 7560a5a978
5 changed files with 42 additions and 14 deletions
@@ -167,3 +167,33 @@ private extension UserOtherSessionsFilter {
}
}
}
extension UserOtherSessionsViewState {
var bottomSheetTitle: String {
switch bindings.filter {
case .unverified:
return VectorL10n.userSessionUnverifiedSessionTitle
case .verified:
return VectorL10n.userSessionVerifiedSessionTitle
case .inactive:
return VectorL10n.userSessionInactiveSessionTitle
case .all:
return ""
}
}
var bottomSheetDescription: String {
switch bindings.filter {
case .unverified:
return VectorL10n.userSessionUnverifiedSessionDescription
case .verified:
return VectorL10n.userSessionVerifiedSessionDescription
case .inactive:
return VectorL10n.userSessionInactiveSessionDescription
case .all:
return ""
}
}
}