Cleanup merge leftovers

This commit is contained in:
Alfonso Grillo
2022-11-03 14:47:08 +01:00
parent 5a083ae69e
commit 68e02935d7
4 changed files with 27 additions and 16 deletions

View File

@@ -144,11 +144,15 @@ struct UserSessionsOverview: View {
private var otherSessionsMenu: some View {
Menu {
Button { viewModel.showLocationInfo.toggle() } label: {
Button {
viewModel.showLocationInfo.toggle()
} label: {
let text = viewModel.showLocationInfo ? VectorL10n.userSessionsHideLocationInfo : VectorL10n.userSessionsShowLocationInfo
let image = viewModel.showLocationInfo ? "eye.slash" : "eye"
Label(text, systemImage: image)
}
signOutButton
} label: {
menuImage
}
@@ -186,7 +190,7 @@ struct UserSessionsOverview: View {
.foregroundColor(theme.colors.secondaryContent)
.padding(.bottom, 8.0)
Spacer()
optionsMenu
otherSessionsMenu
}
Text(VectorL10n.userSessionsOverviewOtherSessionsSectionInfo)