Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-tf committed Jun 15, 2024
1 parent 6fec724 commit 0f38fe4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/app/(routes)/student/jobs/salary/[jobId]/page.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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);
};

Expand Down

0 comments on commit 0f38fe4

Please sign in to comment.