mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Use Compound List in more screens. (#2099)
* Use Compound List in room member details, secure backup, notification settings. * Use ListRow in CreateRoomScreen. * Fix ListRow layout when isWaiting && !isSelected.
This commit is contained in:
+2
-2
@@ -63,13 +63,13 @@ struct RoomNotificationSettingsCustomSectionView_Previews: PreviewProvider, Test
|
||||
Form {
|
||||
RoomNotificationSettingsCustomSectionView(context: viewModel.context)
|
||||
}
|
||||
.compoundForm()
|
||||
.compoundList()
|
||||
.previewDisplayName("Encrypted")
|
||||
|
||||
Form {
|
||||
RoomNotificationSettingsCustomSectionView(context: viewModelUnencrypted.context)
|
||||
}
|
||||
.compoundForm()
|
||||
.compoundList()
|
||||
.previewDisplayName("Unencrypted")
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ struct RoomNotificationSettingsUserDefinedScreen: View {
|
||||
|
||||
private var deleteButton: some View {
|
||||
ListRow(label: .action(title: L10n.screenRoomNotificationSettingsEditRemoveSetting,
|
||||
systemIcon: .trash,
|
||||
icon: \.delete,
|
||||
role: .destructive),
|
||||
details: context.viewState.deletingCustomSetting ? .isWaiting(true) : nil,
|
||||
kind: .button {
|
||||
|
||||
Reference in New Issue
Block a user