From 0f38fe41a44a593d6dbff3f55e87f7f839b147dc Mon Sep 17 00:00:00 2001 From: Ishaan Mittal Date: Sat, 15 Jun 2024 23:09:25 +0530 Subject: [PATCH] fix --- .../(routes)/student/jobs/salary/[jobId]/page.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/app/(routes)/student/jobs/salary/[jobId]/page.tsx b/src/app/(routes)/student/jobs/salary/[jobId]/page.tsx index f800c79a..be1d7732 100644 --- a/src/app/(routes)/student/jobs/salary/[jobId]/page.tsx +++ b/src/app/(routes)/student/jobs/salary/[jobId]/page.tsx @@ -1,18 +1,8 @@ "use client"; import React, { useEffect, useState } from "react"; -import { - Table, - TableHeader, - TableBody, - TableFooter, - TableHead, - TableRow, - TableCell, -} from "@/components/ui/table"; -import { SampleJobData } from "@/dummyData/job"; -import { Separator } from "@/components/ui/separator"; import SalaryCard from "@/components/jobs/SalaryCard"; import { GetJobById } from "@/helpers/student/api"; +import Cookies from "js-cookie"; interface Props {} interface Salary { @@ -37,7 +27,7 @@ const SalaryPage = ({ params }: { params: { jobId: string } }) => { useEffect(() => { const fetchSalaryData = async () => { - const data = await GetJobById(params.jobId); + const data = await GetJobById(params.jobId, Cookies.get("accessToken")); setSalaryData(data.salaries); };