Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6734 Rev 6736
Línea 8... Línea 8...
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 AddProfileModal from '../../components/modals/AddProfileModal'
12
import AddProfileModal from '../../components/modals/AddProfileModal'
-
 
13
import LoaderContainer from '../../components/UI/LoaderContainer'
Línea 13... Línea 14...
13
 
14
 
14
const MyProfilesPage = () => {
15
const MyProfilesPage = () => {
15
  const [isShowAddModal, setIsShowAddModal] = useState(false)
16
  const [isShowAddModal, setIsShowAddModal] = useState(false)
16
  const [loading, setLoading] = useState(false)
17
  const [loading, setLoading] = useState(false)
Línea 59... Línea 60...
59
        onAdd={toggleModal}
60
        onAdd={toggleModal}
60
        addLabel={labels.add}
61
        addLabel={labels.add}
61
      />
62
      />
62
      <SearchBar onChange={handleSearch} />
63
      <SearchBar onChange={handleSearch} />
63
      {loading ? (
64
      {loading ? (
-
 
65
        <LoaderContainer>
64
        <Spinner />
66
          <Spinner />
-
 
67
        </LoaderContainer>
65
      ) : (
68
      ) : (
66
        <ul className="companies-list">
69
        <ul className="companies-list">
67
          {myProfiles.length ? (
70
          {myProfiles.length ? (
68
            myProfiles.map(({ id, link_edit, link_delete, ...rest }) => (
71
            myProfiles.map(({ id, link_edit, link_delete, ...rest }) => (
69
              <ProfileItem
72
              <ProfileItem