chore: cleanup
This commit is contained in:
@@ -278,32 +278,28 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
|
|||||||
const renderAllCredentialFields = () => {
|
const renderAllCredentialFields = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Render username credentials */}
|
|
||||||
{renderCredentialFields(
|
{renderCredentialFields(
|
||||||
credentialGroups.usernames,
|
credentialGroups.usernames,
|
||||||
t('Username'),
|
t('Username'),
|
||||||
'text' // Always show usernames as text
|
'text'
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Render email credentials */}
|
|
||||||
{renderCredentialFields(
|
{renderCredentialFields(
|
||||||
credentialGroups.emails,
|
credentialGroups.emails,
|
||||||
t('Email'),
|
t('Email'),
|
||||||
'text' // Always show emails as text
|
'text'
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Render password credentials */}
|
|
||||||
{renderCredentialFields(
|
{renderCredentialFields(
|
||||||
credentialGroups.passwords,
|
credentialGroups.passwords,
|
||||||
t('Password'),
|
t('Password'),
|
||||||
'password' // Use password masking
|
'password'
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Render other credentials */}
|
|
||||||
{renderCredentialFields(
|
{renderCredentialFields(
|
||||||
credentialGroups.others,
|
credentialGroups.others,
|
||||||
t('Other'),
|
t('Other'),
|
||||||
'text' // Show other credentials as text
|
'text'
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user