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.

Fix: button hydration error

Khuram Niazd7e97a014e2d
diff --git a/src/components/AddJob.tsx b/src/components/AddJob.tsx
index d2fe796..4f15907 100644
--- a/src/components/AddJob.tsx
+++ b/src/components/AddJob.tsx
@@ -414,15 +414,16 @@ export function AddJob({
<DialogFooter
// className="md:col-span
>
- <DialogClose>
+ <div>
<Button
type="reset"
variant="outline"
className="mt-2 md:mt-0 w-full"
+ onClick={() => setDialogOpen(false)}
>
Cancel
</Button>
- </DialogClose>
+ </div>
<Button type="submit">
Save
{isPending ? (
diff --git a/src/components/JobDetails.tsx b/src/components/JobDetails.tsx
index b0db16e..6f406a0 100644
--- a/src/components/JobDetails.tsx
+++ b/src/components/JobDetails.tsx
@@ -14,7 +14,6 @@ import { EditorContent, useEditor } from "@tiptap/react";
import StarterKit from "@tiptap/starter-kit";
import { Badge } from "./ui/badge";
import { cn, formatUrl } from "@/lib/utils";
-import Link from "next/link";
import { JobResponse } from "@/models/job.model";
function JobDetails({ jobId }: { jobId: string }) {
diff --git a/src/components/JobsContainer.tsx b/src/components/JobsContainer.tsx
index 8f6be1e..d5f26ff 100644
--- a/src/components/JobsContainer.tsx
+++ b/src/components/JobsContainer.tsx
@@ -7,7 +7,6 @@ import {
CardHeader,
CardTitle,
} from "./ui/card";
-import { DropdownMenuSeparator } from "./ui/dropdown-menu";
import { Button } from "./ui/button";
import { File, ListFilter } from "lucide-react";
import MyJobsTable from "./MyJobsTable";