Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6774 Rev 6775
Línea 8... Línea 8...
8
import { getMonths, getYears } from '../../utils/dates'
8
import { getMonths, getYears } from '../../utils/dates'
Línea 9... Línea 9...
9
 
9
 
10
import SwitchInput from '../UI/SwitchInput'
10
import SwitchInput from '../UI/SwitchInput'
11
import FormErrorFeedback from '../UI/FormErrorFeedback'
11
import FormErrorFeedback from '../UI/FormErrorFeedback'
12
import UbicationInput from '../../../shared/ubication-input/UbicationInput'
-
 
Línea 13... Línea 12...
13
// import useFetchHelper from '../../hooks/useFetchHelper'
12
import UbicationInput from '../../../shared/ubication-input/UbicationInput'
14
 
13
 
15
const ExperienceModal = ({
14
const ExperienceModal = ({
16
  show = false,
15
  show = false,
Línea 30... Línea 29...
30
    'latitude',
29
    'latitude',
31
    'longitude',
30
    'longitude',
32
  ])
31
  ])
33
  const labels = useSelector(({ intl }) => intl.labels)
32
  const labels = useSelector(({ intl }) => intl.labels)
34
  const dispatch = useDispatch()
33
  const dispatch = useDispatch()
35
  // const { data } = useFetchHelper('company-sizes')
-
 
Línea 36... Línea 34...
36
 
34
 
37
  const {
35
  const {
38
    register,
36
    register,
39
    errors,
37
    errors,
Línea 136... Línea 134...
136
    axios.get(url).then(({ data: response }) => {
134
    axios.get(url).then(({ data: response }) => {
137
      const { data, success } = response
135
      const { data, success } = response
Línea 138... Línea 136...
138
 
136
 
139
      if (!success) {
137
      if (!success) {
140
        const errorMessage = typeof data === 'string' ? data : 'Error'
138
        const errorMessage = typeof data === 'string' ? data : 'Error'
141
        addNotification({ style: 'danger', msg: errorMessage })
139
        dispatch(addNotification({ style: 'danger', msg: errorMessage }))
142
        return
140
        return
Línea 143... Línea 141...
143
      }
141
      }
144
 
142