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

106
Vistas
move incoming list to table

Returning a list from the backend. I assigned this list to context. Then I want to move the returned list to a ready component.

payment.js

   const { paymentInfoData, setPaymentInfoData } = useContext(PaymentInfoDataContext);

  const req = {
    policyNumber: '1258128722',
    renewalNumber: '00',
    policyTypeExtCode: '718',
    productTypeExtCode: '1000032'
  };

  useEffect(() => {
    if (props.location.state.policy.isActive === true && Object.keys(paymentInfoData).length === 0) {
      PolicyService.getAsosInstallments(req).subscribe(
        (response) => {
          setPaymentInfoData(response);
          // console.log(response);
        }
      );
    }
  }, []);

payment.html

<TabPanel value={value} index={0} >
  <EnhancedTable variant="edit" paymentList={paymentInfoData}/>
  <div className="policypaymentinfo__button_container">
    <AS.Button variant="outlined" onClick={handlePayment}>
      Devam
    </AS.Button>
  </div>
</TabPanel>

table.js

function createData(date, price) {
  return { date, price };
}

const rows = [
  createData('03/04/2021', '250 USD'),
];

How do I move the data inside the row? I can see the props in the console.

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