0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

refactor(console): improve input confidentiality handling in TextInput component (#5409)

This commit is contained in:
Darcy Ye 2024-02-19 10:16:45 +08:00 committed by GitHub
parent b54a5388d5
commit 935ee34e12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,8 @@ function TextInput(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
suffixIcon.props.className,
styles.suffix,
alwaysShowSuffix && styles.visible
// The view/hide content toggle should always be visible if this is a confidential input
(isConfidential || alwaysShowSuffix) && styles.visible
),
})}
</div>