Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

302
Views
Error de mecanografiado: esta expresión no se puede llamar. Escriba 'nunca' no tiene firmas de llamada

Recibo un error de TypeScript en onToggle(eventKey === activeEventKey ? null : eventKey) - No se puede llamar a esta expresión. Escriba 'nunca' no tiene firmas de llamada. No estoy seguro de cómo resolver esto.

 import React from 'react' import useAccordionContext from '../../../hooks/useAccordionContext' interface Props { eventKey: string | undefined id: string | undefined className: string onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void } const useAccordionClick = ( eventKey: string | undefined, onClick: { (event: React.MouseEvent<HTMLButtonElement, MouseEvent>): void (arg0: React.MouseEvent<HTMLButtonElement, MouseEvent>): void } ) => { const { onToggle, activeEventKey } = useAccordionContext() return (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => { onToggle(eventKey === activeEventKey ? null : eventKey) if (onClick) { onClick(event) } } } const Toggle: React.FC<Props> = ({ eventKey, onClick, children, ...otherProps }) => { const accordionClick = useAccordionClick(eventKey, onClick) return ( <button onClick={accordionClick} {...otherProps} > {children} </button> ) } export default Toggle
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!