From 7558dbb586242f01bf6b2a1bfbc67f79e915973c Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 6 Dec 2025 16:55:23 +0330 Subject: [PATCH] generate code --- src/components/Button.tsx | 3 +- src/pages/coupon/Create.tsx | 10 ----- .../coupon/components/CouponBasicInfo.tsx | 24 ++++++++-- src/pages/coupon/hooks/useCouponData.ts | 6 +++ src/pages/coupon/hooks/useCouponFilters.ts | 45 +++++++++---------- src/pages/coupon/service/CouponService.ts | 5 +++ 6 files changed, 56 insertions(+), 37 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index c2f9bd9..386e153 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -6,6 +6,7 @@ import { clx } from '../helpers/utils' type Props = { className?: string; isloading?: boolean, + colorLoading?: string, } & ButtonHTMLAttributes & XOR<{ children: ReactNode }, { label: string }>; @@ -21,7 +22,7 @@ const Button: FC = memo((props: Props) => {