feat: Removes reset button style bc it wasn't working as expected
This commit is contained in:
@@ -20,8 +20,6 @@ public struct InfoButton: View {
|
||||
|
||||
public struct ResetButton: View {
|
||||
|
||||
@Environment(\.resetButtonStyle) private var resetButtonStyle
|
||||
|
||||
let action: () -> Void
|
||||
|
||||
public init(action: @escaping () -> Void) {
|
||||
@@ -29,7 +27,16 @@ public struct ResetButton: View {
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Button("Reset") { action() }
|
||||
.buttonStyle(resetButtonStyle)
|
||||
Button("Reset", role: .destructive) {
|
||||
action()
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
VStack {
|
||||
InfoButton { }
|
||||
ResetButton { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user