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
|
<Input
|
||||||
label="Nouveau mot de passe (optionnel)"
|
label="Nouveau mot de passe (optionnel)"
|
||||||
type="password"
|
type="password"
|
||||||
@@ -270,16 +270,14 @@ const UserEditModal = ({ userId, currentUserId, isOpen, onClose, onSaved }) => {
|
|||||||
onChange={(value) => handleInputChange('newPassword', value)}
|
onChange={(value) => handleInputChange('newPassword', value)}
|
||||||
placeholder="Laisser vide pour ne pas modifier"
|
placeholder="Laisser vide pour ne pas modifier"
|
||||||
/>
|
/>
|
||||||
<div>
|
<button
|
||||||
<button
|
type="button"
|
||||||
type="button"
|
onClick={handleSendPasswordReset}
|
||||||
onClick={handleSendPasswordReset}
|
disabled={sendingReset}
|
||||||
disabled={sendingReset}
|
className="cursor-pointer text-left text-xs text-neutral-500 hover:text-neutral-800 dark:hover:text-neutral-200 underline self-start transition-colors"
|
||||||
className="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'}
|
||||||
{sendingReset ? 'Envoi en cours…' : 'Envoyer un lien de réinitialisation par courriel'}
|
</button>
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{needsCurrentPassword && (
|
{needsCurrentPassword && (
|
||||||
|
|||||||
Reference in New Issue
Block a user