Ignore:
Timestamp:
06/17/24 21:59:14 (2 weeks 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jobvista-frontend/src/views/applications/ApplyToJobAdModal.js

    rb248810 rbefb988  
    11import React, {useState} from "react";
    2 import "../job_advertisements/Form.css";
     2import "../shared_css/Modal.css";
    33
    44import 'react-responsive-modal/styles.css';
    55import {Modal} from 'react-responsive-modal';
    6 import Select from "react-select";
    76
    87//Validation
     
    1211
    1312
    14 import {employmentStatusOptions, industryOptions, jobTypeOptions} from "../selectOptions";
    1513import {useDispatch, useSelector} from "react-redux";
    16 import {JobAdvertisementActions} from "../../redux/actions/jobAdvertisementActions";
    1714import Roles from "../../enumerations/Roles";
    1815import {ApplicationActions} from "../../redux/actions/applicationActions";
     16import {notifyJobAdApply} from "../../utils/toastUtils";
    1917
    2018
     
    5553                formData,(success, response) => {
    5654                    if(success) {
    57                         console.log("Job Advertisement added")
    5855                        toggleModal()
     56                        notifyJobAdApply()
    5957                    }
    6058                }
     
    7068        {role===Roles.JOBSEEKER &&
    7169            <>
    72                 {jobAd.active && <button onClick={toggleModal} className="card-button apply">Apply now</button> }
     70                {jobAd.active && <button onClick={toggleModal} className="apply-button apply">Apply now</button> }
    7371                {!jobAd.active && <button className="card-button apply disabled">Apply now</button> }
    7472            </>
     
    8684                            <label className="label">Why are you interested in joining our company?</label>
    8785                            <textarea type="text" placeholder="Write your answer here..."
    88                                       {...register("answerOne")} className="applictaion-textarea"/>
     86                                      {...register("answerOne")} className="application-textarea"/>
    8987                            <p style={{color: "red"}}>{errors.answerOne?.message}</p>
    9088
    9189                            <label className="label">What makes you a good fit for this position?</label>
    9290                            <textarea type="text" placeholder="Write your answer here..."
    93                                       {...register("answerTwo")} className="applictaion-textarea"/>
     91                                      {...register("answerTwo")} className="application-textarea"/>
    9492                            <p style={{color: "red"}}>{errors.answerTwo?.message}</p>
    9593
    9694                            <label className="label">What do you hope to achieve in your first 6 months in this role?</label>
    9795                            <textarea type="text"  placeholder="Write your answer here..."
    98                                    {...register("answerThree")} className="applictaion-textarea"/>
     96                                   {...register("answerThree")} className="application-textarea"/>
    9997                            <p style={{color: "red"}}>{errors.answerThree?.message}</p>
    10098
     
    103101                            <label htmlFor="start">Curriculum vitae (CV)</label>
    104102                            <br/>
    105                             <input {...register("file")} onChange={(e) => setResumeFile(e.target.files[0])} required type="file" id="fileUpload" accept=".pdf"/>
     103                            <input {...register("file")} className="resume-link" onChange={(e) => setResumeFile(e.target.files[0])} required type="file" id="fileUpload" accept=".pdf"/>
    106104
    107105                            <br/>
    108106                            <label className="label">Message to the recruiter</label>
    109107                            <textarea type="text" placeholder="Optional..."
    110                                       {...register("messageToRecruiter")} className="applictaion-textarea"/>
     108                                      {...register("messageToRecruiter")} className="application-textarea"/>
    111109
    112110                            <br/><br/>
     
    115113                    </div>
    116114
    117                     <div className="aligned">
     115                    <div className="modal-buttons">
     116                        <div className="cancel-btn" onClick={toggleModal}> Cancel</div>
    118117                        <button className="submit-btn"> Submit</button>
    119118                    </div>
Note: See TracChangeset for help on using the changeset viewer.