Ignore:
Timestamp:
06/17/24 21:59:14 (5 months ago)
Author:
223021 <daniel.ilievski.2@…>
Branches:
main
Children:
08f82ec
Parents:
b248810
Message:

Added an edit profile page for both job seekers and recruiters, where they can upload profile pictures/company logos and edit their profile data. Added profile page specifically for recruiters. Refactored existing code.

Location:
jobvista-frontend/src/redux/actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • jobvista-frontend/src/redux/actions/applicationActions.js

    rb248810 rbefb988  
    4747      }
    4848    },
    49     fetchApplicationsByJobSeeker: (callback) => {
     49    fetchApplicationsByJobSeeker: (jobSeekerId, callback) => {
    5050      return dispatch => {
    51           let currentUser = JSON.parse(localStorage.getItem(CURRENT_USER));
    52           axios.get("/my-applications/" + currentUser.id)
     51          axios.get("/my-applications/" + jobSeekerId)
    5352              .then(response => {
    5453                  dispatch({
  • jobvista-frontend/src/redux/actions/authActions.js

    rb248810 rbefb988  
    4545                //const refreshToken = response.refreshToken;
    4646                const user = {
    47                     id: response.id,
    48                     email: response.email,
    4947                    name: response.name,
    5048                    role: response.role,
    5149                    access: response.hasAccess,
     50                    id: response.id,
    5251                };
    5352                dispatch({
  • jobvista-frontend/src/redux/actions/jobAdvertisementActions.js

    rb248810 rbefb988  
    8787    },
    8888
    89     fetchJobAdvertisementsByRecruiter: (callback) => {
     89    fetchJobAdvertisementsByRecruiter: (recruiterId, callback) => {
    9090        return dispatch => {
    9191            let currentUser = JSON.parse(localStorage.getItem(CURRENT_USER));
    92             axios.get("/job-advertisements/recruiter/" + currentUser.id)
     92            axios.get("/job-advertisements/recruiter/" + recruiterId)
    9393                .then(response => {
    9494                    dispatch({
     
    103103    },
    104104
    105     filterJobAdvertisementsByRecruiter: (filter, callback) => {
     105    filterJobAdvertisementsByRecruiter: (id, filter, callback) => {
    106106
    107107        let currentUser = JSON.parse(localStorage.getItem(CURRENT_USER));
    108         axios.post("/job-advertisements/recruiter/" + currentUser.id + "/filtered", filter)
     108        axios.post("/job-advertisements/recruiter/" + id + "/filtered", filter)
    109109            .then(response => {
    110110                callback(true, response)
     
    116116
    117117    fetchRecruiterDetailsById: (id, callback) => {
    118         axios.get("/recruiter/info/" + id)
     118        axios.get("/recruiter/"+id+"/info")
    119119            .then(response => {
    120120                callback(true, response)
Note: See TracChangeset for help on using the changeset viewer.