Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5130 Rev 5135
Línea 25... Línea 25...
25
    setLoading(false)
25
    setLoading(false)
26
  }
26
  }
Línea 27... Línea 27...
27
 
27
 
Línea 28... Línea -...
28
  const handleSearch = (value) => debounce(fetchInvitations(value), 500)
-
 
29
 
-
 
30
  if (loading) return <Spinner />
28
  const handleSearch = (value) => debounce(fetchInvitations(value), 500)
31
 
29
 
32
  return (
30
  return (
33
    <section className="companies-info container">
31
    <section className="companies-info container">
34
        <TitleSection title={LABELS.INVITATIONS_RECEIVED}/>
32
        <TitleSection title={LABELS.INVITATIONS_RECEIVED}/>
-
 
33
        <SearchList onChange={handleSearch}/>
-
 
34
        <div className="companies-list">
35
        <SearchList onChange={handleSearch}/>
35
        {loading
36
        <div className="companies-list">
36
          ? <Spinner />
37
          {invitationsReceived.length
37
          : invitationsReceived.length
38
            ? invitationsReceived.map(({ name, image, link_approve, link_reject, link_view }, id) =>
38
            ? invitationsReceived.map(({ name, image, link_approve, link_reject, link_view }, id) =>
39
                <Profile
39
                <Profile
40
                  key={id}
40
                  key={id}
Línea 44... Línea 44...
44
                  link_reject={link_reject}
44
                  link_reject={link_reject}
45
                  link_view={link_view}
45
                  link_view={link_view}
46
                  fetchCallback={fetchInvitations}
46
                  fetchCallback={fetchInvitations}
47
                />
47
                />
48
            )
48
            )
49
            : <EmptySection align='left' message={LABELS.DATATABLE_SZERORECORDS} />}
49
            : <EmptySection align='left' message={LABELS.DATATABLE_SZERORECORDS} />
-
 
50
        }
50
        </div>
51
        </div>
51
    </section>
52
    </section>
52
  )
53
  )
53
}
54
}