Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1547 Rev 1548
Línea 6... Línea 6...
6
import {axios} from "../../../utils";
6
import {axios} from "../../../utils";
7
import { addNotification } from "../../../redux/notification/notification.actions";
7
import { addNotification } from "../../../redux/notification/notification.actions";
8
import Spinner from "../../../shared/loading-spinner/Spinner";
8
import Spinner from "../../../shared/loading-spinner/Spinner";
9
import SavedJob from "./saved-job/SavedJob";
9
import SavedJob from "./saved-job/SavedJob";
10
import SearchList from "../../../components/SearchList";
10
import SearchList from "../../../components/SearchList";
-
 
11
import Card from "../../../components/Profile";
Línea 11... Línea 12...
11
 
12
 
12
const StyledSpinnerContainer = styled.div`
13
const StyledSpinnerContainer = styled.div`
13
  position: absolute;
14
  position: absolute;
14
  left: 0;
15
  left: 0;
Línea 80... Línea 81...
80
          setSavedJobs(resData.data);
81
          setSavedJobs(resData.data);
81
        }
82
        }
82
      });
83
      });
83
    setLoading(false);
84
    setLoading(false);
84
  };
85
  };
85
 
86
  
86
  const handleSearch = () => {
-
 
87
    //  (getValues());
-
 
88
    clearTimeout(axiosThrottle);
-
 
89
    // setLoading(true);
-
 
90
    const searchValue = getValues("search");
-
 
91
    axiosThrottle = setTimeout(() => {
-
 
92
      fetchSavedJobs(searchValue);
-
 
93
    }, 500);
-
 
94
  };
-
 
95
 
-
 
96
  return (
87
  return (
97
    <section className="companies-info" style={{ position: "relative" }}>
88
    <section className="companies-info" style={{ position: "relative" }}>
98
      <div className="container">
89
      <div className="container">
99
        <SearchList
90
        <SearchList
100
          title="Que he guardado"
91
          title="Que he guardado"
Línea 117... Línea 108...
117
                    link_view,
108
                    link_view,
118
                    link_remove,
109
                    link_remove,
119
                  },
110
                  },
120
                  index
111
                  index
121
                ) => (
112
                ) => (
122
                  <SavedJob
113
                  <ProfileCard
123
                    title={title}
-
 
124
                    employment_type={employment_type}
-
 
125
                    last_date_of_application={last_date_of_application}
-
 
126
                    link_view={link_view}
-
 
127
                    link_remove={link_remove}
-
 
128
                    onCancelApply={handleCancelApply}
-
 
129
                    key={index}
114
                    key={index}
-
 
115
                    // image={image}
-
 
116
                    name={title}
-
 
117
                    status={employment_type}
-
 
118
                    link_view={link_view}
-
 
119
                    link_delete={link_remove}
-
 
120
                    fetchCallback={fetchSavedJobs}
130
                  />
121
                  />
-
 
122
                  // <SavedJob
-
 
123
                  //   title={title}
-
 
124
                  //   employment_type={employment_type}
-
 
125
                  //   last_date_of_application={last_date_of_application}
-
 
126
                  //   link_view={link_view}
-
 
127
                  //   link_remove={link_remove}
-
 
128
                  //   onCancelApply={handleCancelApply}
-
 
129
                  //   key={index}
-
 
130
                  // />
131
                )
131
                )
132
              )
132
              )
133
            ) : (
133
            ) : (
134
              <p>No hay resultados</p>
134
              <p>No hay resultados</p>
135
            )}
135
            )}