Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

84
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda