style(admin): simplify password reset button markup and remove border separator
This commit is contained in:
@@ -262,7 +262,7 @@ const UserEditModal = ({ userId, currentUserId, isOpen, onClose, onSaved }) => {
|
||||
)}
|
||||
/>
|
||||
|
||||
<div className="border-t border-neutral-200 dark:border-neutral-800 pt-4 flex flex-col gap-2">
|
||||
<div className="flex flex-col gap-2">
|
||||
<Input
|
||||
label="Nouveau mot de passe (optionnel)"
|
||||
type="password"
|
||||
@@ -270,17 +270,15 @@ const UserEditModal = ({ userId, currentUserId, isOpen, onClose, onSaved }) => {
|
||||
onChange={(value) => handleInputChange('newPassword', value)}
|
||||
placeholder="Laisser vide pour ne pas modifier"
|
||||
/>
|
||||
<div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleSendPasswordReset}
|
||||
disabled={sendingReset}
|
||||
className="text-xs text-neutral-500 hover:text-neutral-800 dark:hover:text-neutral-200 underline self-start transition-colors"
|
||||
className="cursor-pointer text-left text-xs text-neutral-500 hover:text-neutral-800 dark:hover:text-neutral-200 underline self-start transition-colors"
|
||||
>
|
||||
{sendingReset ? 'Envoi en cours…' : 'Envoyer un lien de réinitialisation par courriel'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{needsCurrentPassword && (
|
||||
<Input
|
||||
|
||||
Reference in New Issue
Block a user