Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3223 Rev 3224
Línea 6... Línea 6...
6
 
6
 
Línea 7... Línea 7...
7
const List = (props) => {
7
const List = (props) => {
Línea -... Línea 8...
-
 
8
 
-
 
9
    const { backendVars, data, loading, getTestByUrl } = props;
-
 
10
 
-
 
11
    loading && <Spinner />
-
 
12
 
-
 
13
    if (data.length <= 0) {
-
 
14
        return (
-
 
15
            <div className="col-md-12 col-sm-12 col-xs-12 text-center">
-
 
16
                {backendVars.LBL_DATATABLE_SZERORECORDS}
-
 
17
            </div>
8
 
18
        )
9
    const { backendVars, data, loading, getTestByUrl } = props;
-
 
10
 
-
 
11
    return (
-
 
12
        <div className="w-100 d-flex">
-
 
13
            {loading ?
-
 
14
                <Spinner />
-
 
15
                :
-
 
16
                <>
-
 
17
                    {data.length <= 0 ?
-
 
18
                        <div className="col-md-12 col-sm-12 col-xs-12 text-center">
-
 
19
                            {backendVars.LBL_DATATABLE_SZERORECORDS}
19
    }
20
                        </div>
20
 
21
                        :
21
    return (
22
                        <div className={styles.card_list}>
22
        <div className={styles.card_list}>
23
                            {data.map((test, key) => {
23
            {data.map((test, key) => {
24
                                return <CardTest
24
                return <CardTest
25
                                    key={key}
25
                    key={key}
26
                                    test={test}
-
 
27
                                    getTestByUrl={getTestByUrl}
-
 
28
                                    backendVars={backendVars} />
-
 
29
                            })}
-
 
30
                        </div>
26
                    test={test}
31
                    }
27
                    getTestByUrl={getTestByUrl}
32
                </>
28
                    backendVars={backendVars} />
33
            }
29
            })}
Línea 34... Línea 30...
34
        </div>
30
        </div>
35
    );
31
    );