From 5ddb64d8cd40041d01adfaa23476d161aacf2d28 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Thu, 19 Sep 2024 18:37:03 +0800 Subject: [PATCH] style(console): hide button title when loading (#6602) --- packages/console/src/ds-components/Button/index.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/console/src/ds-components/Button/index.tsx b/packages/console/src/ds-components/Button/index.tsx index 5d7949090..4993b2720 100644 --- a/packages/console/src/ds-components/Button/index.tsx +++ b/packages/console/src/ds-components/Button/index.tsx @@ -95,14 +95,7 @@ function Button( > {showSpinner && } {icon && {icon}} - {title && - (typeof title === 'string' ? ( - - - - ) : ( - title - ))} + {title && {typeof title === 'string' ? : title}} {trailingIcon && {trailingIcon}} );