| Línea 36... |
Línea 36... |
| 36 |
const handleSearch = debounce((value) => getCompanies(value), 500)
|
36 |
const handleSearch = debounce((value) => getCompanies(value), 500)
|
| Línea 37... |
Línea 37... |
| 37 |
|
37 |
|
| 38 |
return (
|
38 |
return (
|
| 39 |
<section className="companies-info container">
|
39 |
<section className="companies-info container">
|
| 40 |
<TitleSection title={LABELS.COMPANIES_I_WORK_WITH} />
|
40 |
<TitleSection title={LABELS.COMPANIES_I_WORK_WITH} />
|
| 41 |
<SearchList fetchCallback={handleSearch} />
|
41 |
<SearchList onChange={handleSearch} />
|
| 42 |
<div className="companies-list">
|
42 |
<div className="companies-list">
|
| 43 |
{loading && <Spinner />}
|
43 |
{loading && <Spinner />}
|
| 44 |
{(!loading && Boolean(!companies.length)) && <EmptySection align='left' message={LABELS.DATATABLE_SZERORECORDS} />}
|
44 |
{(!loading && Boolean(!companies.length)) && <EmptySection align='left' message={LABELS.DATATABLE_SZERORECORDS} />}
|
| 45 |
{(!loading && Boolean(companies.length)) &&
|
45 |
{(!loading && Boolean(companies.length)) &&
|