add objet and renovation

This commit is contained in:
tuanvu
2025-12-13 23:22:40 +01:00
parent 27503103da
commit 3d44d635a2
4 changed files with 6 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ export default function AddChantier() {
chantierDate.setHours(morning ? 0 : 12, 0, 0, 0);
//CREATE NEW TYPE CHANTIER FOR FIRESTORE
const chantierFirestore = {
name: objet,
adresse,
etat: "En cours",
contact,
@@ -100,6 +101,7 @@ export default function AddChantier() {
if (id) {
//console.log("Chantier created with ID:", id);
setChantier({ ...chantierFirestore,
name: objet,
id,
chef: chefChantier,
equipe: [],