-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from WomenPlusPlus/candidate_jobs
Candidate jobs
- Loading branch information
Showing
12 changed files
with
418 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import Grid from "@mui/material/Grid"; | ||
import React from "react"; | ||
import { Stack } from "@mui/material"; | ||
import Typography from "@mui/material/Typography"; | ||
|
||
//import { JobPostNew } from "@/app/(site)/company/jobs/types"; | ||
// import { JobPostCard } from "@/app/(site)/company/jobs/jobPostCard"; | ||
import JobCard from "@/components/site/candidateJobs/jobCard"; | ||
import { Matches } from "@/components/site/candidateProfile/candidateInterface"; | ||
|
||
interface JobPostTypes { | ||
id: number; | ||
job_title: string; | ||
full_match_score: number; | ||
// to come i hope! | ||
job_description?: string; | ||
job_type?: string; | ||
work_model?: string; | ||
start_on?: string; //or might be a date | ||
match_percent?: number; // is full_match_score | ||
logo_src?: string; | ||
|
||
// job_id?: number; | ||
// logo_src?: string; | ||
// job_summary?: string; | ||
|
||
// id:number; | ||
// job_title:string; | ||
// full_match_score:number; | ||
// // to come i hope! | ||
// job_description?:string; | ||
// job_type?:string; | ||
// work_model?:string; | ||
// start_on?:string; //or might be a date | ||
// match_percent:number // is full_match_score | ||
} | ||
|
||
interface JobListProps { | ||
matches: JobPostTypes[]; | ||
} | ||
|
||
const JobsList: React.FC<JobListProps> = ({ matches }) => { | ||
return ( | ||
<Grid> | ||
{matches.length === 0 && ( | ||
<Stack> | ||
<Typography>No jobs found</Typography> | ||
</Stack> | ||
)} | ||
|
||
{matches.map((match, index) => ( | ||
<JobCard key={match.id} job_data={match} /> | ||
))} | ||
</Grid> | ||
); | ||
}; | ||
|
||
export default JobsList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { getJobsForCandidate } from "@/lib/getJobsForCandidate"; | ||
|
||
export const useJobs = (userId: string) => { | ||
|
||
return getJobsForCandidate(userId); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.