refactor: refactor Button

This commit is contained in:
Kenta Kubo 2025-09-02 03:36:20 +09:00
parent 13fbfc849a
commit 01d5a48a63

View file

@ -54,10 +54,8 @@ extension RestorationView: View {
.navigationTitle("Presets")
.toolbar {
ToolbarItem(placement: .cancellationAction) {
Button(role: .cancel) {
Button("Cancel", systemImage: "xmark", role: .cancel) {
self.dismiss()
} label: {
Image(systemName: "xmark")
}
}
}