From 292e6ebc6f1684a9996fcacb698a8bfd5086e34d Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Fri, 26 May 2023 22:19:12 +0800 Subject: [PATCH] refactor(console): update the eye icon of CopyToClipboard (#3908) --- .../console/src/assets/images/eye-closed.svg | 5 ++--- .../src/components/CopyToClipboard/index.tsx | 20 ++++++++++--------- .../de/translation/admin-console/general.ts | 2 ++ .../en/translation/admin-console/general.ts | 2 ++ .../es/translation/admin-console/general.ts | 2 ++ .../fr/translation/admin-console/general.ts | 2 ++ .../it/translation/admin-console/general.ts | 2 ++ .../ja/translation/admin-console/general.ts | 2 ++ .../ko/translation/admin-console/general.ts | 2 ++ .../translation/admin-console/general.ts | 2 ++ .../translation/admin-console/general.ts | 2 ++ .../translation/admin-console/general.ts | 2 ++ .../ru/translation/admin-console/general.ts | 2 ++ .../translation/admin-console/general.ts | 2 ++ .../translation/admin-console/general.ts | 2 ++ .../translation/admin-console/general.ts | 2 ++ .../translation/admin-console/general.ts | 2 ++ 17 files changed, 43 insertions(+), 12 deletions(-) diff --git a/packages/console/src/assets/images/eye-closed.svg b/packages/console/src/assets/images/eye-closed.svg index 000cd9a25..c3a370ca0 100644 --- a/packages/console/src/assets/images/eye-closed.svg +++ b/packages/console/src/assets/images/eye-closed.svg @@ -1,5 +1,4 @@ - + + diff --git a/packages/console/src/components/CopyToClipboard/index.tsx b/packages/console/src/components/CopyToClipboard/index.tsx index 0ceff938d..11cc07f36 100644 --- a/packages/console/src/components/CopyToClipboard/index.tsx +++ b/packages/console/src/components/CopyToClipboard/index.tsx @@ -41,7 +41,7 @@ function CopyToClipboard({ return value; } - return '*'.repeat(value.length); + return '•'.repeat(value.length); }, [hasVisibilityToggle, showHiddenContent, value]); useEffect(() => { @@ -75,14 +75,16 @@ function CopyToClipboard({
{variant !== 'icon' &&
{displayValue}
} {hasVisibilityToggle && ( - - {showHiddenContent ? : } - + + + {showHiddenContent ? : } + + )}