Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2865 Rev 2888
Línea 18... Línea 18...
18
import AuthForm from '../../components/auth/AuthForm'
18
import AuthForm from '../../components/auth/AuthForm'
19
import Spinner from 'components/UI/Spinner'
19
import Spinner from 'components/UI/Spinner'
20
import Input from 'components/UI/inputs/Input'
20
import Input from 'components/UI/inputs/Input'
21
import Checkbox from 'components/UI/checkbox/Checkbox'
21
import Checkbox from 'components/UI/checkbox/Checkbox'
22
import Button from '@app/components/UI/buttons/Buttons'
22
import Button from '@app/components/UI/buttons/Buttons'
-
 
23
import { useMobile } from '@hooks'
Línea 23... Línea 24...
23
 
24
 
24
const SocialButton = styled(Button)`
25
const SocialButton = styled(Button)`
25
  background-color: white;
26
  background-color: white;
26
  border: 1px solid black;
27
  border: 1px solid black;
Línea 41... Línea 42...
41
  twitterOauth = '/signin/twitter',
42
  twitterOauth = '/signin/twitter',
42
  googleOauth = '/signin/google'
43
  googleOauth = '/signin/google'
43
}) => {
44
}) => {
44
  const [isLoading, setIsLoading] = useState(false)
45
  const [isLoading, setIsLoading] = useState(false)
45
  const [isVerified, setIsVerified] = useState(false)
46
  const [isVerified, setIsVerified] = useState(false)
-
 
47
  const isMobile = useMobile()
Línea 46... Línea 48...
46
 
48
 
47
  const reCaptchaToken = useRef('')
49
  const reCaptchaToken = useRef('')
Línea 48... Línea 50...
48
  const reCaptchaInstance = useRef(null)
50
  const reCaptchaInstance = useRef(null)
Línea 105... Línea 107...
105
          const url = data.redirect.split('.com')[1]
107
          const url = data.redirect.split('.com')[1]
106
          reCaptchaInstance.current.reset()
108
          reCaptchaInstance.current.reset()
107
          loginExpiredCallbackHandler()
109
          loginExpiredCallbackHandler()
108
          reset()
110
          reset()
109
          dispatch(login())
111
          dispatch(login())
-
 
112
 
110
          navigate(url)
113
          isMobile ? navigate('/mobile-option') : navigate(url)
111
        })
114
        })
112
        .catch((err) => {
115
        .catch((err) => {
113
          console.log(err)
116
          console.log(err)
114
          reCaptchaInstance.current.reset()
117
          reCaptchaInstance.current.reset()