0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

style(console): hide button title when loading (#6602)

This commit is contained in:
Xiao Yijun 2024-09-19 18:37:03 +08:00 committed by GitHub
parent 8e5127f90b
commit 5ddb64d8cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,14 +95,7 @@ function Button(
> >
{showSpinner && <Spinner className={styles.spinner} />} {showSpinner && <Spinner className={styles.spinner} />}
{icon && <span className={styles.icon}>{icon}</span>} {icon && <span className={styles.icon}>{icon}</span>}
{title && {title && <span>{typeof title === 'string' ? <DynamicT forKey={title} /> : title}</span>}
(typeof title === 'string' ? (
<span>
<DynamicT forKey={title} />
</span>
) : (
title
))}
{trailingIcon && <span className={styles.trailingIcon}>{trailingIcon}</span>} {trailingIcon && <span className={styles.trailingIcon}>{trailingIcon}</span>}
</button> </button>
); );