Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6511 Rev 6513
Línea 1... Línea 1...
1
import React, { useRef, useState, useEffect } from 'react'
1
import React, { useRef, useState, useEffect } from 'react'
2
import { axios } from '../../../utils'
2
import { axios } from '../../../utils'
3
import { useForm } from 'react-hook-form'
3
import { useForm } from 'react-hook-form'
4
import { useDispatch, useSelector } from 'react-redux'
4
import { useDispatch, useSelector } from 'react-redux'
5
import { addNotification } from '../../../redux/notification/notification.actions'
-
 
6
import Recaptcha from 'react-recaptcha'
5
import Recaptcha from 'react-recaptcha'
7
import cryptoJsAesJson from '../../../utils/crypto-js/cryptojs-aes-format'
6
import cryptoJsAesJson from '../../../utils/crypto-js/cryptojs-aes-format'
Línea -... Línea 7...
-
 
7
 
-
 
8
import { login } from '../../../redux/auth/auth.actions'
-
 
9
import { addNotification } from '../../../redux/notification/notification.actions'
8
 
10
 
9
import Spinner from '../../../components/UI/Spinner'
11
import Spinner from '../../../components/UI/Spinner'
Línea 10... Línea 12...
10
import FormErrorFeedback from '../../../components/UI/FormErrorFeedback'
12
import FormErrorFeedback from '../../../components/UI/FormErrorFeedback'
11
 
13
 
Línea 59... Línea 61...
59
          }
61
          }
60
          dispatch(addNotification({ style: 'danger', msg: data }))
62
          dispatch(addNotification({ style: 'danger', msg: data }))
61
          return
63
          return
62
        }
64
        }
Línea -... Línea 65...
-
 
65
 
63
 
66
        dispatch(login())
64
        event.target.reset()
67
        event.target.reset()
65
      })
68
      })
66
      .catch((err) => {
69
      .catch((err) => {
67
        dispatch(
70
        dispatch(