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

169
Vistas
How to implement dropdown cell for a specific column

I am trying to customize one of the columns to have dropdown cells that can show the status and to be able to change it, same Jira backlog issue status implementation.
the idea is to take the dropdown value and send it to my database via graphql.

enter image description here

can anyone advise me with the best practice to do it ?

below are my code

  const [reqStatus, setreqStatus] = useState(false);

  const result = orgData.map((a) => a.id);
  console.log(result);
  const handleTranslationstatus = (e) => {
    e.preventDefault();
    UpdateTransStatus({ stats: reqStatus, id: result })
      .then((res) => {
        console.log(res);
      })
      .catch((e) => {
        alert(`Something went wrong, ${e.message}`);
      });
  };
  const options = [
    { label: 'Progress', value: false },
    { label: 'Done', value: true },
  ];




 <table className={style.table} id="myTable">
        <thead className={style.header}>
          <tr>
            <th>orgName</th>
            <th>VideoCardID</th>
            <th>Requested Date</th>
            <th>VideoLink</th>
            <th>Request Status</th>

            <th>save changes</th>
          </tr>
        </thead>

        <tbody>
          {orgData.map((organization) => {
            return (
              <tr key={organization.id}>
                <td>{organization.orgName}</td>
                <td>{organization.videocardId}</td>
                <td>{organization.requestDate}</td>
                <td>
                  <a target="_blank" href={`${organization.videoLink}`} rel="noreferrer">
                    Link
                  </a>
                </td>
                <td>
                  <Select
                    multi
                    value={reqStatus}
                    onChange={(e) => setreqStatus(e.target.value)}
                    options={options}
                  />
                </td>
                <td>
                  <button
                    type="submit"
                    className="btn action-btn"
                    onClick={handleTranslationstatus}
                  >
                    Save
                  </button>
                </td>
              </tr>
            );
          })}
        </tbody>
      </table>
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