Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6861 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6861 Rev 6889
Línea 11... Línea 11...
11
 
11
 
12
const AddCompanyModal = ({
12
const AddCompanyModal = ({
13
  show = false,
13
  show = false,
14
  onHide = () => null,
14
  onHide = () => null,
15
  fetchCompanies = () => [],
-
 
16
  industries = {},
15
  fetchCompanies = () => [],
17
}) => {
16
}) => {
18
  const [loading, setLoading] = useState(false)
17
  const [loading, setLoading] = useState(false)
-
 
18
  const { data: companySizes } = useFetchHelper('company-sizes')
19
  const { data: companySizes } = useFetchHelper('company-sizes')
19
  const { data: industries } = useFetchHelper('industries')
20
  const labels = useSelector(({ intl }) => intl.labels)
20
  const labels = useSelector(({ intl }) => intl.labels)
Línea 21... Línea 21...
21
  const dispatch = useDispatch()
21
  const dispatch = useDispatch()
Línea 82... Línea 82...
82
              })}
82
              })}
83
            >
83
            >
84
              <option value="" hidden>
84
              <option value="" hidden>
85
                {labels.industry}
85
                {labels.industry}
86
              </option>
86
              </option>
87
              {Object.entries(industries).map(([key, value]) => (
87
              {industries.map(({ name, value }) => (
88
                <option value={key} key={key}>
88
                <option value={value} key={value}>
89
                  {value}
89
                  {name}
90
                </option>
90
                </option>
91
              ))}
91
              ))}
92
            </select>
92
            </select>
93
            {errors.industry_id && (
93
            {errors.industry_id && (
94
              <FormErrorFeedback>
94
              <FormErrorFeedback>