Cleanup merge leftovers

This commit is contained in:
Alfonso Grillo
2022-11-03 14:50:46 +01:00
parent b471d81147
commit 7c8038ef36
@@ -148,7 +148,11 @@ struct UserSessionsOverview: View {
Label(showLocationInfo: viewModel.viewState.showLocationInfo)
}
signOutButton
DestructiveButton {
viewModel.send(viewAction: .logoutOtherSessions)
} label: {
Label(VectorL10n.userOtherSessionMenuSignOutSessions(String(viewModel.viewState.otherSessionsViewData.count)), systemImage: "rectangle.portrait.and.arrow.forward.fill")
}
} label: {
menuImage
}
@@ -217,23 +221,6 @@ struct UserSessionsOverview: View {
}
.background(theme.colors.system.ignoresSafeArea())
}
private var optionsMenu: some View {
Button { } label: {
Menu {
DestructiveButton {
viewModel.send(viewAction: .logoutOtherSessions)
} label: {
Label(VectorL10n.userOtherSessionMenuSignOutSessions(String(viewModel.viewState.otherSessionsViewData.count)), systemImage: "rectangle.portrait.and.arrow.forward.fill")
}
} label: {
Image(systemName: "ellipsis")
.foregroundColor(theme.colors.secondaryContent)
.padding(.horizontal, 4)
.padding(.vertical, 12)
}
}
}
}
// MARK: - Previews