From 9db4e1b3c023c0d463e47122ea82f732ec8151cd Mon Sep 17 00:00:00 2001 From: Aakiyaru Date: Wed, 28 May 2025 14:21:21 +0700 Subject: [PATCH] fd --- Sources/UIKitComponents/CatalogButton.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/UIKitComponents/CatalogButton.swift b/Sources/UIKitComponents/CatalogButton.swift index 561dce7..40c6f90 100644 --- a/Sources/UIKitComponents/CatalogButton.swift +++ b/Sources/UIKitComponents/CatalogButton.swift @@ -10,20 +10,22 @@ import SwiftUI public struct CatalogButton: View { let title: String + let disactive: Bool let action: () -> () - public init(title: String, action: @escaping () -> Void) { + public init(title: String, disactive: Bool, action: @escaping () -> Void) { self.title = title + self.disactive = disactive self.action = action } public var body: some View { - CustomMainButtonView(title: title, size: .chips, disactive: true) {action()} + CustomMainButtonView(title: title, size: .chips, disactive: disactive) {action()} } } #Preview { - CatalogButton(title: "Женщинам") { + CatalogButton(title: "Женщинам", disactive: true) { } }