Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1979 Rev 2087
Línea 6... Línea 6...
6
import { addNotification } from '../../redux/notification/notification.actions'
6
import { addNotification } from '../../redux/notification/notification.actions'
7
import useFetchHelper from '../../hooks/useFetchHelper'
7
import useFetchHelper from '../../hooks/useFetchHelper'
Línea 8... Línea 8...
8
 
8
 
9
import Modal from 'components/UI/modal/Modal'
9
import Modal from 'components/UI/modal/Modal'
-
 
10
import FormErrorFeedback from 'components/UI/form/FormErrorFeedback'
Línea 10... Línea 11...
10
import FormErrorFeedback from 'components/UI/form/FormErrorFeedback'
11
import Input from '../UI/inputs/Input'
11
 
12
 
12
const AddCompanyModal = ({
13
const AddCompanyModal = ({
13
  show = false,
14
  show = false,
Línea 54... Línea 55...
54
      title={labels.new_company}
55
      title={labels.new_company}
55
      show={show}
56
      show={show}
56
      onClose={onHide}
57
      onClose={onHide}
57
      onAccept={onSubmit}
58
      onAccept={onSubmit}
58
    >
59
    >
59
      <div className='form-group'>
-
 
60
        <input
60
      <Input
61
          type='text'
-
 
62
          name='name'
61
        name='name'
63
          placeholder={labels.name_of_company}
62
        placeholder={labels.name_of_company}
64
          ref={register({
63
        ref={register({
65
            required: 'Por favor ingrese el nombre de la Empresa'
64
          required: 'Por favor ingrese el nombre de la Empresa'
66
          })}
65
        })}
67
        />
-
 
68
        {errors.name && (
66
        error={errors.name?.message}
69
          <FormErrorFeedback>{errors.name.message}</FormErrorFeedback>
-
 
70
        )}
-
 
71
      </div>
67
      />
Línea 72... Línea 68...
72
 
68
 
73
      <div className='form-group'>
69
      <div className='form-group'>
74
        <select
70
        <select
75
          name='industry_id'
71
          name='industry_id'
Línea 111... Línea 107...
111
          <FormErrorFeedback>
107
          <FormErrorFeedback>
112
            {errors.company_size_id.message}
108
            {errors.company_size_id.message}
113
          </FormErrorFeedback>
109
          </FormErrorFeedback>
114
        )}
110
        )}
115
      </div>
111
      </div>
116
 
-
 
117
    </Modal>
112
    </Modal>
118
  )
113
  )
119
}
114
}
Línea 120... Línea 115...
120
 
115