Add a generic ErrorAlertInfo type.

Adopt it in Location Sharing and Polls.
This commit is contained in:
Doug
2022-03-03 16:30:00 +00:00
committed by Doug
parent cfeae5bc64
commit 9602d1ee03
8 changed files with 85 additions and 57 deletions
@@ -59,7 +59,7 @@ struct TimelinePollView: View {
.padding([.bottom])
.alert(item: $viewModel.alertInfo) { info in
Alert(title: Text(info.title),
message: Text(info.subtitle),
message: info.messageText,
dismissButton: .default(Text(VectorL10n.ok)))
}
}