Replace the Cancel button with a Close button on the Space Filters screen. (#5408)
* Updated placement and type of button Moved the "X"/Close button from the left to the right, and made it a primary action. * Update snapshots. --------- Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
@@ -35,8 +35,8 @@ struct ChatsSpaceFiltersScreen: View {
|
||||
|
||||
@ToolbarContentBuilder
|
||||
private var toolbar: some ToolbarContent {
|
||||
ToolbarItem(placement: .cancellationAction) {
|
||||
ToolbarButton(role: .cancel) {
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
ToolbarButton(role: .close) {
|
||||
context.send(viewAction: .cancel)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user