Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14169 Rev 14561
Línea 7... Línea 7...
7
const SubmitModal = ({
7
const SubmitModal = ({
8
	children,
8
	children,
9
	closeModal = function () { },
9
	closeModal = function () { },
10
	postLink = '',
10
	postLink = '',
11
	submitData = '',
11
	submitData = '',
12
	title = ''
12
	title = '',
-
 
13
	onComplete = function () { }
13
}) => {
14
}) => {
Línea 14... Línea 15...
14
 
15
 
15
	const [error, setError] = useState('')
16
	const [error, setError] = useState('')
Línea 55... Línea 56...
55
 
56
 
56
				dispatch(addNotification({
57
				dispatch(addNotification({
57
					style: 'success',
58
					style: 'success',
58
					msg: 'Envio completado'
59
					msg: 'Envio completado'
-
 
60
				}))
59
				}))
61
				onComplete()
60
				setError(null)
62
				setError(null)
61
				closeModal()
63
				closeModal()
62
			})
64
			})
63
			.catch((err) => setError(err))
65
			.catch((err) => setError(err))