Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6734 Rev 6736
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 TitleSection from '../../components/UI/TitleSection'
9
import TitleSection from '../../components/UI/TitleSection'
10
import EmptySection from '../../components/UI/EmptySection'
10
import EmptySection from '../../components/UI/EmptySection'
11
import ProfileItem from '../../components/profile/ProfileItem'
11
import ProfileItem from '../../components/profile/ProfileItem'
-
 
12
import LoaderContainer from '../../components/UI/LoaderContainer'
Línea 12... Línea 13...
12
 
13
 
13
const AppliedJobsPage = () => {
14
const AppliedJobsPage = () => {
14
  const [appliedJobs, setMyProfiles] = useState([])
15
  const [appliedJobs, setMyProfiles] = useState([])
15
  const [loading, setLoading] = useState(false)
16
  const [loading, setLoading] = useState(false)
Línea 47... Línea 48...
47
  return (
48
  return (
48
    <main className="companies-info container">
49
    <main className="companies-info container">
49
      <TitleSection title={labels.jobs_applied} />
50
      <TitleSection title={labels.jobs_applied} />
50
      <SearchBar onChange={handleSearch} />
51
      <SearchBar onChange={handleSearch} />
51
      {loading ? (
52
      {loading ? (
-
 
53
        <LoaderContainer>
52
        <Spinner />
54
          <Spinner />
-
 
55
        </LoaderContainer>
53
      ) : (
56
      ) : (
54
        <ul className="companies-list">
57
        <ul className="companies-list">
55
          {appliedJobs.length ? (
58
          {appliedJobs.length ? (
56
            appliedJobs.map(({ id, title, employment_type, ...rest }) => (
59
            appliedJobs.map(({ id, title, employment_type, ...rest }) => (
57
              <ProfileItem
60
              <ProfileItem