Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2072 Rev 2154
Línea 7... Línea 7...
7
import Spinner from '../../components/UI/Spinner'
7
import Spinner from '../../components/UI/Spinner'
8
import SearchBar from '../../components/UI/SearchBar'
8
import SearchBar from '../../components/UI/SearchBar'
9
import ProfileItem from '../../components/profile/ProfileItem'
9
import ProfileItem from '../../components/profile/ProfileItem'
10
import TitleSection from '../../components/UI/TitleSection'
10
import TitleSection from '../../components/UI/TitleSection'
11
import EmptySection from '../../components/UI/EmptySection'
11
import EmptySection from '../../components/UI/EmptySection'
12
import LoaderContainer from '../../components/UI/LoaderContainer'
-
 
13
import AddCompanyModal from '../../components/modals/AddCompanyModal'
12
import AddCompanyModal from '../../components/modals/AddCompanyModal'
Línea 14... Línea 13...
14
 
13
 
15
const MyCompanies = () => {
14
const MyCompanies = () => {
16
  const [companies, setCompanies] = useState([])
15
  const [companies, setCompanies] = useState([])
Línea 47... Línea 46...
47
  return (
46
  return (
48
    <main className='companies-info container'>
47
    <main className='companies-info container'>
49
      <TitleSection
48
      <TitleSection
50
        title={labels.my_companies}
49
        title={labels.my_companies}
51
        onAdd={toggleShowCompanyModal}
50
        onAdd={toggleShowCompanyModal}
52
        addLabel={`${labels.add} ${labels.company.toLowerCase()}`}
51
        addLabel={`${labels.add} ${labels.company?.toLowerCase()}`}
53
      />
52
      />
Línea 54... Línea 53...
54
 
53
 
Línea 55... Línea 54...
55
      <SearchBar onChange={handleSearch} />
54
      <SearchBar onChange={handleSearch} />
56
 
-
 
57
      {loading ? (
55
 
58
        <LoaderContainer>
-
 
59
          <Spinner />
56
      {loading ? (
60
        </LoaderContainer>
57
        <Spinner />
61
      ) : (
58
      ) : (
62
        <ul className='companies-list'>
59
        <ul className='companies-list'>
63
          {companies.length ? (
60
          {companies.length ? (