Przeglądaj źródła

end snooze instead of undo and simpler button

ejm0 2 dni temu
rodzic
commit
b8eed9dd73
1 zmienionych plików z 4 dodań i 10 usunięć
  1. 4 10
      Trio/Sources/Views/SnoozeAlertsSheetView.swift

+ 4 - 10
Trio/Sources/Views/SnoozeAlertsSheetView.swift

@@ -27,17 +27,11 @@ struct SnoozeAlertsSheetView: View {
                                 .font(.headline)
                         }
                         Button {
-                            undoSnooze()
+                            endSnooze()
                         } label: {
-                            HStack {
-                                Image(systemName: "arrow.uturn.backward.circle").foregroundStyle(.red)
-                                Text("Undo Snooze").bold()
-                            }
-                            .font(.title3)
+                            Text("End Snooze")
+                                .foregroundColor(.red)
                         }
-                        .frame(maxWidth: .infinity, alignment: .center)
-                        .buttonStyle(.bordered)
-                        .tint(.red)
                     }.listRowBackground(Color.chart)
                 }
                 Section(footer: Text(
@@ -83,7 +77,7 @@ struct SnoozeAlertsSheetView: View {
         }
     }
 
-    private func undoSnooze() {
+    private func endSnooze() {
         let trioAlertManager = resolver.resolve(TrioAlertManager.self)
         Task { @MainActor in
             await trioAlertManager?.applySnooze(for: 0)