Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 5 Rev 2194
Línea 30... Línea 30...
30
        return
30
        return
31
      }
31
      }
Línea 32... Línea 32...
32
 
32
 
33
      setMyProfiles(data)
33
      setMyProfiles(data)
34
    } catch (error) {
-
 
35
      console.log(error)
34
    } catch (error) {
36
      throw new Error(error)
35
      dispatch(addNotification({ style: 'danger', msg: error.message }))
37
    } finally {
36
    } finally {
38
      setLoading(false)
37
      setLoading(false)
39
    }
38
    }
Línea 44... Línea 43...
44
  useEffect(() => {
43
  useEffect(() => {
45
    getAppliedJobs(search)
44
    getAppliedJobs(search)
46
  }, [search])
45
  }, [search])
Línea 47... Línea 46...
47
 
46
 
48
  return (
47
  return (
49
    <main className="companies-info container">
48
    <main className='companies-info container'>
50
      <TitleSection title={labels.jobs_applied} />
49
      <TitleSection title={labels.jobs_applied} />
51
      <SearchBar onChange={handleSearch} />
50
      <SearchBar onChange={handleSearch} />
52
      {loading ? (
51
      {loading ? (
53
        <LoaderContainer>
52
        <LoaderContainer>
54
          <Spinner />
53
          <Spinner />
55
        </LoaderContainer>
54
        </LoaderContainer>
56
      ) : (
55
      ) : (
57
        <ul className="companies-list">
56
        <ul className='companies-list'>
58
          {appliedJobs.length ? (
57
          {appliedJobs.length ? (
59
            appliedJobs.map(({ id, title, employment_type, ...rest }) => (
58
            appliedJobs.map(({ id, title, employment_type, ...rest }) => (
60
              <ProfileItem
59
              <ProfileItem
61
                key={id}
60
                key={id}
Línea 67... Línea 66...
67
                btnLeaveTitle={labels.job_request_cancel}
66
                btnLeaveTitle={labels.job_request_cancel}
68
              />
67
              />
69
            ))
68
            ))
70
          ) : (
69
          ) : (
71
            <EmptySection
70
            <EmptySection
72
              align="left"
71
              align='left'
73
              message={labels.datatable_szerorecords}
72
              message={labels.datatable_szerorecords}
74
            />
73
            />
75
          )}
74
          )}
76
        </ul>
75
        </ul>
77
      )}
76
      )}