Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3230 Rev 3409
Línea 5... Línea 5...
5
import { styled, Typography } from '@mui/material'
5
import { styled, Typography } from '@mui/material'
6
import { Mail, Lock, Person, CheckCircleOutline } from '@mui/icons-material'
6
import { Mail, Lock, Person, CheckCircleOutline } from '@mui/icons-material'
7
import Recaptcha from 'react-recaptcha'
7
import Recaptcha from 'react-recaptcha'
Línea 8... Línea 8...
8
 
8
 
-
 
9
import { axios } from '@utils'
9
import { axios } from '@utils'
10
import { useFetchHelper } from '@hooks'
10
import { addNotification } from '@store/notification/notification.actions'
11
import { addNotification } from '@store/notification/notification.actions'
Línea 11... Línea 12...
11
import CryptoJSAesJson from '@utils/crypto-js/cryptojs-aes-format'
12
import CryptoJSAesJson from '@utils/crypto-js/cryptojs-aes-format'
12
 
13
 
Línea 48... Línea 49...
48
  const reCaptchaInstance = useRef(null)
49
  const reCaptchaInstance = useRef(null)
49
  const reCaptchaToken = useRef('')
50
  const reCaptchaToken = useRef('')
50
  const dispatch = useDispatch()
51
  const dispatch = useDispatch()
51
  const { site_key, aes } = useSelector(({ auth }) => auth)
52
  const { site_key, aes } = useSelector(({ auth }) => auth)
Línea -... Línea 53...
-
 
53
 
-
 
54
  const { data: timezones } = useFetchHelper('timezones')
52
 
55
 
53
  const {
56
  const {
54
    control,
57
    control,
55
    handleSubmit,
58
    handleSubmit,
56
    setError,
59
    setError,
Línea 240... Línea 243...
240
            'Disculpe, las claves tienen que coincidir'
243
            'Disculpe, las claves tienen que coincidir'
241
        }}
244
        }}
242
        error={errors.confirmation?.message}
245
        error={errors.confirmation?.message}
243
      />
246
      />
Línea -... Línea 247...
-
 
247
 
-
 
248
      <Select
-
 
249
        label='Zona horaria'
-
 
250
        name='timezone'
-
 
251
        control={control}
-
 
252
        rules={{ required: 'Este campo es requerido' }}
-
 
253
        error={errors.timezone?.message}
-
 
254
        options={Object.entries(timezones).map(([key, value]) => ({
-
 
255
          name: key,
-
 
256
          value
-
 
257
        }))}
-
 
258
      />
244
 
259
 
245
      <SwitchInput
260
      <SwitchInput
246
        label='Eres mayor de 18'
261
        label='Eres mayor de 18'
247
        setValue={(value) => setIsAdult(value)}
262
        setValue={(value) => setIsAdult(value)}