Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1908 Rev 1909
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState, useEffect } from 'react'
2
import { useSelector } from 'react-redux'
2
import { useSelector } from 'react-redux'
3
import { Box } from '@mui/material'
3
import { Box } from '@mui/material'
4
import BootstrapModal from 'react-bootstrap/Modal'
4
import BootstrapModal from 'react-bootstrap/Modal'
Línea 5... Línea 5...
5
 
5
 
Línea 36... Línea 36...
36
      onAccept()
36
      onAccept()
37
      return
37
      return
38
    }
38
    }
Línea 39... Línea 39...
39
 
39
 
-
 
40
    setLoading(true)
-
 
41
 
40
    setLoading(true)
42
    onAccept().finally(() => {
41
    console.log(loading)
43
      console.log('on finally')
-
 
44
      setLoading(false)
42
    onAccept().finally(() => setLoading(false))
45
    })
Línea -... Línea 46...
-
 
46
  }
-
 
47
 
-
 
48
  useEffect(() => {
-
 
49
    console.log(loading)
43
  }
50
  }, [loading])
44
 
51
 
45
  return (
52
  return (
46
    <BootstrapModal
53
    <BootstrapModal
47
      animation={animation}
54
      animation={animation}