From c393404feca79ed3b1923b6387c1d50c524bd3af Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Thu, 19 Jun 2025 09:48:07 +0100 Subject: [PATCH] fix alert having like 2 cancel buttons --- NearFuture/Views/Settings/ImportView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NearFuture/Views/Settings/ImportView.swift b/NearFuture/Views/Settings/ImportView.swift index 109fe59..a13f90a 100644 --- a/NearFuture/Views/Settings/ImportView.swift +++ b/NearFuture/Views/Settings/ImportView.swift @@ -15,7 +15,7 @@ struct ImportView: View { @State private var text: String = "Ready..." @State private var fgColor: Color = .yellow - @State private var showAlert: Bool = true + @State private var showAlert: Bool = false @State private var replaceCurrentEvents: Bool = false @@ -66,17 +66,17 @@ struct ImportView: View { fgColor = .yellow } } - .blur(radius: showAlert ? 2 : 0) .alert("Are you sure?", isPresented: $showAlert) { Button(role: .destructive) { importEvents() } label: { Text("Replace Events") } - Button(role: .cancel) { + Button() { importEvents() } label: { Text("Add to Events") + .foregroundStyle(.one) } } }