Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1911 Rev 1912
Línea 35... Línea 35...
35
    if (!enableLoading) {
35
    if (!enableLoading) {
36
      onAccept()
36
      onAccept()
37
      return
37
      return
38
    }
38
    }
Línea 39... Línea 39...
39
 
39
 
40
    setLoading(true)
40
    setLoading((state) => !state)
41
    onAccept().finally(() => setLoading(false))
41
    onAccept().finally(() => setLoading((state) => !state))
Línea 42... Línea 42...
42
  }
42
  }
43
 
43
 
44
  return (
44
  return (
Línea 55... Línea 55...
55
        <BootstrapModal.Title>{title}</BootstrapModal.Title>
55
        <BootstrapModal.Title>{title}</BootstrapModal.Title>
56
      </BootstrapModal.Header>
56
      </BootstrapModal.Header>
Línea 57... Línea 57...
57
 
57
 
58
      <BootstrapModal.Body className={styles['modal-content']}>
58
      <BootstrapModal.Body className={styles['modal-content']}>
-
 
59
        {children}
59
        {children}
60
 
60
        {loading ? (
61
        {loading ? (
61
          <Box
62
          <Box
62
            sx={{
63
            sx={{
63
              position: 'absolute',
64
              position: 'absolute',