Changeset 08f82ec for jobvista-frontend/src/views/job_advertisements
- Timestamp:
- 06/20/24 11:57:13 (5 months ago)
- Branches:
- main
- Children:
- 0f0add0
- Parents:
- befb988
- Location:
- jobvista-frontend/src/views/job_advertisements
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
jobvista-frontend/src/views/job_advertisements/AddJobAdModal.js
rbefb988 r08f82ec 43 43 44 44 const addJobAdvertisement = async (values) => { 45 //const description = values.description.replace(/\n/g, "\\n");46 45 try { 47 46 dispatch(JobAdvertisementActions.addJobAdvertisement( … … 55 54 jobType: values.jobType.value, 56 55 employmentStatus: values.employmentStatus.value, 57 }, (success , response) => {56 }, (success) => { 58 57 if (success) { 59 // console.log("Job Advertisement added")60 58 toggleModal() 61 59 notifyJobAdPost() -
jobvista-frontend/src/views/job_advertisements/DeleteJobAdModal.js
rbefb988 r08f82ec 26 26 }; 27 27 28 const addJobAdvertisement = async () => {28 const deleteJobAdvertisement = async () => { 29 29 try { 30 dispatch(JobAdvertisementActions.deleteJobAdvertisement(jobAd.props.id, (success , response) => {30 dispatch(JobAdvertisementActions.deleteJobAdvertisement(jobAd.props.id, (success) => { 31 31 if (success) { 32 // console.log("Job Advertisement deleted")33 32 toggleModal() 34 33 notifyJobAdDelete() … … 54 53 <div className="modal-delete-buttons"> 55 54 <button className="cancel-btn" onClick={toggleModal}>Cancel</button> 56 <button className="delete-btn" onClick={ addJobAdvertisement}> Delete</button>55 <button className="delete-btn" onClick={deleteJobAdvertisement}> Delete</button> 57 56 </div> 58 57 </div> -
jobvista-frontend/src/views/job_advertisements/EditJobAdModal.js
rbefb988 r08f82ec 54 54 jobType: values.jobType.value, 55 55 employmentStatus: values.employmentStatus.value, 56 }, jobAd.props.id, (success , response) => {56 }, jobAd.props.id, (success) => { 57 57 if(success) { 58 // console.log("Job Advertisement edited")59 58 toggleModal() 60 59 notifyJobAdEdit() -
jobvista-frontend/src/views/job_advertisements/JobAdDetails.css
rbefb988 r08f82ec 20 20 /*scrollbar-width: thin; !* "auto" hides scrollbar on some browsers, "thin" shows a thin scrollbar *!*/ 21 21 /*scrollbar-color: #999999 #fff;*/ 22 } 23 24 .min-wrap { 25 min-height: 80vh; 22 26 } 23 27 -
jobvista-frontend/src/views/job_advertisements/JobAdDetails.js
rbefb988 r08f82ec 63 63 <div className="row"> 64 64 <div className="col-md-9"> 65 <div className="details-wrap ">65 <div className="details-wrap min-wrap"> 66 66 <div className="row"> 67 67 <div className="col-md-9"> -
jobvista-frontend/src/views/job_advertisements/JobManagementHub.js
rbefb988 r08f82ec 66 66 67 67 let filterJobAdvertisements = () => { 68 JobAdvertisementActions.filterJobAdvertisementsByRecruiter( {68 JobAdvertisementActions.filterJobAdvertisementsByRecruiter(auth.id, { 69 69 searchTerm: searchTerm, industry: selectedIndustry, sortOrder: selectedSortOrder 70 70 }, (success, response) => { … … 127 127 {jobAdvertisementsByRecruiter && jobAdvertisementsByRecruiter.map((jobAd, index) => ( 128 128 <div key={index} className="col"> 129 <div className="custom-card ">129 <div className="custom-card hub-card"> 130 130 <div className="card-head"> 131 131 <span className="hourly-salary"><b>${jobAd.startingSalary}/hr</b></span> … … 150 150 </div> 151 151 152 <div className="aligned"> 153 <Link to={`/job-management-hub/applications/${jobAd.id}`} 154 className="card-button solo">View applications</Link> 155 </div> 152 </div> 156 153 154 155 <div className="card-foot"> 156 <Link to={`/job-management-hub/applications/${jobAd.id}`} 157 className="card-button">View applications</Link> 157 158 </div> 158 159 </div>
Note:
See TracChangeset
for help on using the changeset viewer.