Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

85
Vistas
Document modification in Next.js

I'm a beginner to code and with my group we have to do an online quote manager module. We work in next.js. Until then, everything is going well but with my partner we're working on saving quotes that can be modified before being submitted. We're not sure how to handle the code. Our quotes are in "to do" and not in "draft" For the moment we only succeed in submitting requests for quotes but not the modification.

Thanks in advance !

 const handleClickSave = async (data) => {
console.log(data);
axios
  .post("./api/estimate/estimateApi", { ...data, status: "DRAFT" })
  .then((res) => {
    Swal.fire({
      position: "center",
      icon: "success",
      title:
        "Votre demande de devis a été enregistré mais n'a pas été envoyé à l'administrateur",
      showConfirmButton: false,
      timer: 2500,
    });
  });
};

The edit button :

  <button
            className="bg-third w-2/5 h-10 flex justify-center rounded-3xl m-20 p-2 text-ml"
            onClick={handleClickSave}
            type="button"
            name="Save"
          >
            Enregistrer ma demande pour continuer plus tard <br />
            <SaveIcon className="ml-10" />
          </button>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda