Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8409 Rev 8411
Línea 9... Línea 9...
9
    dataLink
9
    dataLink
10
}) => {
10
}) => {
Línea 11... Línea 11...
11
 
11
 
12
    const [jobCategoryOptions, setJobsCategoryOptions] = useState([]);
12
    const [jobCategoryOptions, setJobsCategoryOptions] = useState([]);
13
    const [currentJobCategory, setCurrentJobCategory] = useState("");
13
    const [currentJobCategory, setCurrentJobCategory] = useState("");
Línea 14... Línea 14...
14
    const [data, setData] = useState({ "job_category": "" });
14
    const [data, setData] = useState({ "job_category_id": "" });
15
 
15
 
16
 
16
 
Línea 26... Línea 26...
26
            })
26
            })
27
    }, [dataLink]);
27
    }, [dataLink]);
Línea 28... Línea 28...
28
 
28
 
29
    return (
29
    return (
30
        <SubmitModal
30
        <SubmitModal
31
            title="Grados"
31
            title="Categoría"
32
            submitData={data}
32
            submitData={data}
33
            postLink={dataLink}
33
            postLink={dataLink}
34
            closeModal={closeModal}
34
            closeModal={closeModal}
35
        >
35
        >
36
            <select
36
            <select
37
                className='form-control'
37
                className='form-control'
38
                name="employment_type"
38
                name="employment_type"
39
                onChange={(e) => setData({ ...data, job_category: e.target.value })}
39
                onChange={(e) => setData({ ...data, job_category_id: e.target.value })}
40
                defaultValue={currentJobCategory}
40
                defaultValue={currentJobCategory}
41
            >
41
            >
42
                {
42
                {
43
                    jobCategoryOptions.map(({ value, name }) => (
43
                    jobCategoryOptions.map(({ value, name }) => (