diff --git a/src/components/Jobcard.tsx b/src/components/Jobcard.tsx index 1e4508bf..d52feba8 100644 --- a/src/components/Jobcard.tsx +++ b/src/components/Jobcard.tsx @@ -1,4 +1,4 @@ -import { Briefcase } from 'lucide-react'; +import { AlertCircle, Briefcase } from 'lucide-react'; import Image from 'next/image'; import Link from 'next/link'; import Icon from './ui/icon'; @@ -11,16 +11,30 @@ export default function JobCard({ job }: { job: JobType }) {
- company_logo + {job.companyLogo ? ( + job.companyLogo === 'https://wwww.example.com' ? ( +
+ company-logo +
+ ) : ( + company-logo + ) + ) : null}

@@ -55,14 +69,20 @@ export default function JobCard({ job }: { job: JobType }) {

- {job.skills.map((item, index) => ( -
- {item} + {job.skills && job.skills.length !== 0 ? ( + job.skills.map((item, index) => ( +
+ {item} +
+ )) + ) : ( +
+ No skills provided
- ))} + )}
); diff --git a/src/components/job.tsx b/src/components/job.tsx index ee19a5d9..1fc413d2 100644 --- a/src/components/job.tsx +++ b/src/components/job.tsx @@ -22,19 +22,25 @@ export const Job = ({ job }: { job: JobType }) => { }; return ( -