Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14892 Rev 15059
Línea 8... Línea 8...
8
import DescriptionInput from '../../../shared/DescriptionInput'
8
import DescriptionInput from '../../../shared/DescriptionInput'
Línea 9... Línea 9...
9
 
9
 
Línea 10... Línea 10...
10
const AddModal = ({ closeModal, email_link, isOpen, add_link }) => {
10
const AddModal = ({ closeModal, email_link, isOpen, add_link }) => {
11
 
11
 
12
	//Hooks
12
	//Hooks
Línea 13... Línea 13...
13
	const { register, handleSubmit, watch, setError, errors, setValue, clearErrors } = useForm()
13
	const { register, handleSubmit, watch, setError, errors, setValue, clearErrors, onComplete } = useForm()
14
	const dispatch = useDispatch()
14
	const dispatch = useDispatch()
15
 
15
 
Línea 57... Línea 57...
57
				}
57
				}
Línea 58... Línea 58...
58
 
58
 
59
				clearErrors()
59
				clearErrors()
60
				closeModal()
60
				closeModal()
-
 
61
				setIsShowSecondPage(false)
61
				setIsShowSecondPage(false)
62
				onComplete()
62
				dispatch(addNotification({
63
				dispatch(addNotification({
63
					style: 'success',
64
					style: 'success',
64
					msg: 'Usuario registrado'
65
					msg: 'Usuario registrado'
65
				}))
66
				}))