mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 19:28:16 +00:00
fix lint issues
This commit is contained in:
+22
-7
@@ -629,24 +629,39 @@ export const SecretDetailSidebar = ({
|
|||||||
>
|
>
|
||||||
{secretValue}
|
{secretValue}
|
||||||
</span>
|
</span>
|
||||||
<FontAwesomeIcon
|
<button
|
||||||
icon={faEyeSlash}
|
type="button"
|
||||||
className="ml-1 cursor-pointer"
|
className="ml-1 cursor-pointer"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.currentTarget.closest('.group')?.classList.remove('show-value');
|
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');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<FontAwesomeIcon icon={faEyeSlash} />
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<span className="group-[.show-value]:hidden">
|
<span className="group-[.show-value]:hidden">
|
||||||
{secretValue?.replace(/./g, '*')}
|
{secretValue?.replace(/./g, '*')}
|
||||||
<FontAwesomeIcon
|
<button
|
||||||
icon={faEye}
|
type="button"
|
||||||
className="ml-1 cursor-pointer"
|
className="ml-1 cursor-pointer"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.currentTarget.closest('.group')?.classList.add('show-value');
|
e.currentTarget.closest('.group')?.classList.add('show-value');
|
||||||
}}
|
}}
|
||||||
/>
|
onKeyDown={(e) => {
|
||||||
|
if (e.key === 'Enter' || e.key === ' ') {
|
||||||
|
e.currentTarget.closest('.group')?.classList.add('show-value');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<FontAwesomeIcon icon={faEye} />
|
||||||
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user