mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-08-04 22:40:11 +00:00
Replace remove button with trash icon positioned inside password field
This commit is contained in:
@@ -478,8 +478,8 @@ export default function SendsPage(props: SendsPageProps) {
|
|||||||
<div className="password-wrap">
|
<div className="password-wrap">
|
||||||
<input className="input" type="password" value="••••••••" disabled />
|
<input className="input" type="password" value="••••••••" disabled />
|
||||||
{!isCreating && (
|
{!isCreating && (
|
||||||
<button type="button" className="btn btn-secondary small" onClick={() => setDraft({ ...draft, hasPassword: false, password: '' })}>
|
<button type="button" className="password-toggle text-red-600 hover:text-red-700" onClick={() => setDraft({ ...draft, hasPassword: false, password: '' })} title={t('txt_remove')}>
|
||||||
{t('txt_remove')}
|
<Trash2 size={16} />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user