Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

Add link to job details on recentJobCard

Khuram Niaz4cecf65c4b21
diff --git a/src/components/dashboard/RecentJobsCard.tsx b/src/components/dashboard/RecentJobsCard.tsx
index 6373206..55e1541 100644
--- a/src/components/dashboard/RecentJobsCard.tsx
+++ b/src/components/dashboard/RecentJobsCard.tsx
@@ -2,6 +2,7 @@ import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { JobResponse } from "@/models/job.model";
import { format } from "date-fns";
+import Link from "next/link";
export default function RecentJobsCard({ jobs }: { jobs: JobResponse[] }) {
return (
@@ -19,14 +20,16 @@ export default function RecentJobsCard({ jobs }: { jobs: JobResponse[] }) {
/>
<AvatarFallback>JS</AvatarFallback>
</Avatar>
- <div className="grid gap-1">
- <p className="text-sm font-medium leading-none">
- {job.JobTitle?.label}
- </p>
- <p className="text-sm text-muted-foreground">
- {job.Company?.label}
- </p>
- </div>
+ <Link href={`/dashboard/myjobs/${job?.id}`}>
+ <div className="grid gap-1">
+ <p className="text-sm font-medium leading-none">
+ {job.JobTitle?.label}
+ </p>
+ <p className="text-sm text-muted-foreground">
+ {job.Company?.label}
+ </p>
+ </div>
+ </Link>
<div className="ml-auto text-sm font-medium">
{format(job?.appliedDate, "PP")}
</div>