Fix info in UserSessionCardView

This commit is contained in:
Alfonso Grillo
2022-12-15 18:11:44 +01:00
parent 53f29e4830
commit d1c63bd685
3 changed files with 22 additions and 13 deletions
@@ -34,7 +34,8 @@ struct UserSessionOverview: View {
onLearnMoreAction: {
viewModel.send(viewAction: .viewSessionInfo)
},
showLocationInformations: viewModel.viewState.showLocationInfo
showLocationInformations: viewModel.viewState.showLocationInfo,
displayMode: .extended
)
.padding(16)
@@ -77,12 +78,10 @@ struct UserSessionOverview: View {
}
.accessibilityIdentifier(VectorL10n.manageSessionRename)
if viewModel.viewState.isCurrentSession == false {
Button {
viewModel.send(viewAction: .showLocationInfo)
} label: {
Label(showLocationInfo: viewModel.viewState.showLocationInfo)
}
Button {
viewModel.send(viewAction: .showLocationInfo)
} label: {
Label(showLocationInfo: viewModel.viewState.showLocationInfo)
}
}
DestructiveButton {