Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1914 Rev 1915
Línea 27... Línea 27...
27
  children
27
  children
28
}) => {
28
}) => {
29
  const [loading, setLoading] = useState(false)
29
  const [loading, setLoading] = useState(false)
30
  const labels = useSelector(({ intl }) => intl.labels)
30
  const labels = useSelector(({ intl }) => intl.labels)
Línea -... Línea 31...
-
 
31
 
-
 
32
  const toggleLoading = () => setLoading(!loading)
31
 
33
 
32
  const handleAccept = useCallback(() => {
34
  const handleAccept = useCallback(() => {
Línea 33... Línea 35...
33
    const enableLoading = isPromise(onAccept)
35
    const enableLoading = isPromise(onAccept)
34
 
36
 
Línea 81... Línea 83...
81
            {labelAccept || labels.accept}
83
            {labelAccept || labels.accept}
82
          </Button>
84
          </Button>
83
          <Button variant='secondary' onClick={onReject || onClose}>
85
          <Button variant='secondary' onClick={onReject || onClose}>
84
            {labelReject || labels.cancel}
86
            {labelReject || labels.cancel}
85
          </Button>
87
          </Button>
-
 
88
          <Button variant='secondary' onClick={toggleLoading}>
-
 
89
            loading
-
 
90
          </Button>
86
        </BootstrapModal.Footer>
91
        </BootstrapModal.Footer>
87
      ) : null}
92
      ) : null}
88
    </BootstrapModal>
93
    </BootstrapModal>
89
  )
94
  )
90
}
95
}