Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 340 Rev 341
Línea 22... Línea 22...
22
    /**
22
    /**
23
     * Get All self evaluation tests
23
     * Get All self evaluation tests
24
     */
24
     */
25
    const fetchData = async (searchParam = '') => {
25
    const fetchData = async (searchParam = '') => {
26
        setLoading(true);
26
        setLoading(true);
27
        axios.get(
27
        await axios.get(
28
            "/profile/self-evaluation?search=" + searchParam)
28
            "/profile/self-evaluation?search=" + searchParam)
29
            .then((response) => {
29
            .then((response) => {
30
                if (response.data.success) {
30
                if (response.data.success) {
31
                    setData(response.data.data);
31
                    setData(response.data.data);
32
                }
32
                }
Línea 37... Línea 37...
37
    /**
37
    /**
38
     * get info test
38
     * get info test
39
     * @param {*} url 
39
     * @param {*} url 
40
     */
40
     */
41
    const getTestByUrl = async (url) => {
41
    const getTestByUrl = async (url) => {
42
        axios.get(url)
42
        await axios.get(url)
43
            .then((response) => {
43
            .then((response) => {
44
                if (response.data.data) {
44
                if (response.data.data) {
45
                    setAction(url);
45
                    setAction(url);
46
                    setTest(response.data.data);
46
                    setTest(response.data.data);
47
                }
47
                }
Línea 85... Línea 85...
85
                    <Test
85
                    <Test
86
                        backendVars={backendVars}
86
                        backendVars={backendVars}
87
                        loading={loading}
87
                        loading={loading}
88
                        setTest={setTest}
88
                        setTest={setTest}
89
                        test={test}
89
                        test={test}
90
                        action ={ action}
90
                        action={action}
91
                        />
91
                    />
92
                </div>
92
                </div>
93
            )}
93
            )}
94
        </section>
94
        </section>
Línea 95... Línea 95...
95
 
95