Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skills #171

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions src/app/(routes)/admin/jobs/[jobId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,15 @@ const JobDetailPage = ({ params }: { params: { jobId: string } }) => {
<div>
<div className="font-semibold text-lg my-4">Skills</div>
<div className="flex flex-wrap gap-4">
{editMode ? (
<input
type="text"
name="skills"
value={formData.skills}
onChange={handleChange}
/>
) : (
job.skills
)}
<div className="flex flex-wrap !text-md">
{job.skills.map((skill, index) => (
<div key={index} className="mx-2 my-2">
<div className="border-2 border-gray-300 p-2 px-4 rounded-full bg-gray-200 text-gray-600">
{skill}
</div>
</div>
))}
</div>
</div>
<div className="flex md:flex-row flex-col flex-wrap bg-gray-200 rounded-lg justify-between py-4 px-6 my-3">
<div>
Expand Down
17 changes: 17 additions & 0 deletions src/components/jobs/JobCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ const JobCard = ({ jobItem, type}: Props) => {
className="job-description"
dangerouslySetInnerHTML={{ __html: cleanHTML }}
/>
<div className="my-4">
<Separator />
</div>
<div className="font-semibold text-md"> Skills </div>
<div className="flex flex-wrap !text-md">
{jobItem.skills.map((skill, index) => (
<div key={index} className="mx-2 my-2">
<div className="border-2 border-gray-300 p-2 px-4 rounded-full bg-gray-200 text-gray-600">
{skill}
</div>
</div>
))}
</div>
<div className="my-4">
<Separator />
</div>

<div className="flex justify-between my-3">
<Button>
<Link href={`/student/job/salary/${jobItem.id}`}>Salaries</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/recruiter/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export interface JobDetailFC {
};
description: string;
attachment: string;
skills: string;
skills: string[];
offerLetterReleaseDate: string;
joiningDate: string;
location: string;
Expand Down
1 change: 1 addition & 0 deletions src/helpers/student/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export interface Jobs {
role: string;
duration: string;
attachment: string;
skills: string[];
description: string;
active: boolean;
currentStatus: string;
Expand Down
Loading