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:
parent
8e5127f90b
commit
5ddb64d8cd
1 changed files with 1 additions and 8 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue