Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1920 | Rev 1922 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1920 Rev 1921
Línea 25... Línea 25...
25
  children
25
  children
26
}) => {
26
}) => {
27
  const [loading, setLoading] = useState(false)
27
  const [loading, setLoading] = useState(false)
28
  const labels = useSelector(({ intl }) => intl.labels)
28
  const labels = useSelector(({ intl }) => intl.labels)
Línea 29... Línea 29...
29
 
29
 
30
  const handleAccept = () => {
30
  const handleAccept = useCallback(async () => {
31
    setLoading(true)
-
 
32
 
31
    setLoading(true)
33
    setTimeout(() => setLoading(false), 2000)
32
    await onAccept()
Línea 34... Línea 33...
34
  }
33
  }, [onAccept])
35
 
34
 
36
  return (
35
  return (
37
    <BootstrapModal
36
    <BootstrapModal