From 964c919430139f30b5e765a978e69c007c75a511 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 1 May 2026 17:26:23 +0200 Subject: [PATCH] feat: completer Settings.tsx - ContactsSection + export default Settings --- frontend/src/pages/Settings.tsx | 115 ++++++++++++++++---------------- 1 file changed, 57 insertions(+), 58 deletions(-) diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx index 9d63b4f..a4cdb41 100644 --- a/frontend/src/pages/Settings.tsx +++ b/frontend/src/pages/Settings.tsx @@ -579,18 +579,11 @@ function ContactsSection() { } } - return ( -
- -

Colonnes : Nom, Société (optionnel)

-
- {/* Liste des contacts */} - {contacts.length > 0 && ( -
- {contacts.map(c => ( -
-
- {c.name} - {c.company && {c.company}} -
- -
- ))} -
+ {contacts.length === 0 && ( +

Aucun contact enregistré.

)} + {contacts.map(c => ( +
+
+

{c.name}

+ {c.company &&

{c.company}

} +
+ +
+ ))} - {/* Ajout manuel */} -
-

Ajouter manuellement

-
- setNewName(e.target.value)} - onKeyDown={e => { if (e.key === 'Enter' && newName.trim()) { e.preventDefault(); add.mutate({ name: newName.trim(), company: newCompany.trim() }); }}} /> - setNewCompany(e.target.value)} - onKeyDown={e => { if (e.key === 'Enter' && newName.trim()) { e.preventDefault(); add.mutate({ name: newName.trim(), company: newCompany.trim() }); }}} /> + {/* Formulaire ajout manuel */} +
+

Ajouter un contact

+ setNewName(e.target.value)} + /> + setNewCompany(e.target.value)} + /> +
+ + {/* Import CSV */} + +
@@ -662,18 +661,18 @@ function ContactsSection() { ); } -// ─── Page principale ───────────────────────────────────────── +// ─── Page Paramètres (assemblage) ──────────────────────────── export default function Settings() { return ( -
-

Paramètres

+
+

Paramètres

- +
); }