Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 5 Rev 1312
Línea 47... Línea 47...
47
  useEffect(() => {
47
  useEffect(() => {
48
    getCompaniesWhenIWork(search)
48
    getCompaniesWhenIWork(search)
49
  }, [search])
49
  }, [search])
Línea 50... Línea 50...
50
 
50
 
51
  return (
51
  return (
52
    <main className="companies-info container">
52
    <main className='companies-info container'>
53
      <TitleSection title={labels.companies_i_work_with} />
53
      <TitleSection title={labels.companies_i_work_with} />
54
      <SearchBar onChange={handleSearch} />
54
      <SearchBar onChange={handleSearch} />
55
      {loading ? (
55
      {loading ? (
56
        <LoaderContainer>
56
        <LoaderContainer>
57
          <Spinner />
57
          <Spinner />
58
        </LoaderContainer>
58
        </LoaderContainer>
59
      ) : (
59
      ) : (
60
        <ul className="companies-list">
60
        <ul className='companies-list'>
61
          {companiesWhenIWork.length ? (
61
          {companiesWhenIWork.length ? (
62
            companiesWhenIWork.map(({ id, link_my_company, ...rest }) => (
62
            companiesWhenIWork.map(({ id, link_my_company, ...rest }) => (
63
              <ProfileItem
63
              <ProfileItem
64
                key={id}
64
                key={id}
65
                link_admin={link_my_company}
65
                link_admin={link_my_company}
66
                fetchCallback={getCompaniesWhenIWork}
66
                fetchCallback={getCompaniesWhenIWork}
-
 
67
                btnAcceptTitle={labels.view_company}
67
                btnAcceptTitle={labels.view_company}
68
                btnLeaveTitle={labels.company_leave}
68
                {...rest}
69
                {...rest}
69
              />
70
              />
70
            ))
71
            ))
71
          ) : (
72
          ) : (
72
            <EmptySection
73
            <EmptySection
73
              align="left"
74
              align='left'
74
              message={labels.datatable_szerorecords}
75
              message={labels.datatable_szerorecords}
75
            />
76
            />
76
          )}
77
          )}
77
        </ul>
78
        </ul>