From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/base/button/index.tsx |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/app/components/base/button/index.tsx b/app/components/base/button/index.tsx
index b467c49..3bd4b21 100644
--- a/app/components/base/button/index.tsx
+++ b/app/components/base/button/index.tsx
@@ -34,11 +34,10 @@
   destructive?: boolean
   loading?: boolean
   styleCss?: CSSProperties
-  spinnerClassName?: string
 } & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>
 
 const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
-  ({ className, variant, size, destructive, loading, styleCss, children, spinnerClassName, ...props }, ref) => {
+  ({ className, variant, size, destructive, loading, styleCss, children, ...props }, ref) => {
     return (
       <button
         type='button'
@@ -51,7 +50,7 @@
         {...props}
       >
         {children}
-        {loading && <Spinner loading={loading} className={classNames('!text-white !h-3 !w-3 !border-2 !ml-1', spinnerClassName)} />}
+        {loading && <Spinner loading={loading} className='!text-white !h-3 !w-3 !border-2 !ml-1' />}
       </button>
     )
   },

--
Gitblit v1.8.0