From 81d6fe0b083e08ba3160748caf8f981302f9f925 Mon Sep 17 00:00:00 2001 From: amirsaam Date: Sun, 20 Oct 2024 03:37:21 +0330 Subject: [PATCH] Update RadixButton.swift --- Sources/RadixUI/RadixThemes/RadixButton.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/RadixUI/RadixThemes/RadixButton.swift b/Sources/RadixUI/RadixThemes/RadixButton.swift index 15e19ff..886c734 100644 --- a/Sources/RadixUI/RadixThemes/RadixButton.swift +++ b/Sources/RadixUI/RadixThemes/RadixButton.swift @@ -16,10 +16,8 @@ fileprivate struct RadixButton: ButtonStyle { } } -extension Button { +extension View { public func radixButton() -> some View { - self.buttonStyle( - RadixButton() - ) + self.buttonStyle(RadixButton()) } }