add objet and renovation
This commit is contained in:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user