From 6e590a78a091a6437030f1160d539cf37b6ff5cb Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Tue, 25 Feb 2025 17:30:15 +0900 Subject: [PATCH] fix lint issues --- .../SecretListView/SecretDetailSidebar.tsx | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx index 8c41b53d7..ef789645b 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx @@ -629,24 +629,39 @@ export const SecretDetailSidebar = ({ > {secretValue} - { e.stopPropagation(); e.currentTarget.closest('.group')?.classList.remove('show-value'); }} - /> + onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.stopPropagation(); + e.currentTarget.closest('.group')?.classList.remove('show-value'); + } + }} + > + + {secretValue?.replace(/./g, '*')} - { e.currentTarget.closest('.group')?.classList.add('show-value'); }} - /> + onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.currentTarget.closest('.group')?.classList.add('show-value'); + } + }} + > + +