Skip to content

Commit 54fbb36

Browse files
ishaan-tfIshaan Mittal
authored and
Ishaan Mittal
committed
nit fix
1 parent 628790d commit 54fbb36

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

src/components/jobs/JobCard.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { OnCampusOffers, Salary, Resume } from "@/helpers/student/types";
1818
import { ApplyJob, GetSalaryById } from "@/helpers/student/api";
1919
import Cookies from "js-cookie";
20-
import toast, { Toaster } from "react-hot-toast";
20+
import toast from "react-hot-toast";
2121
interface Props {
2222
jobItem: OnCampusOffers;
2323
salaryId: string;
@@ -29,7 +29,7 @@ const JobCard = ({ jobItem, salaryId, resumes }: Props) => {
2929

3030
useEffect(() => {
3131
const fetchSalary = async () => {
32-
const data = await GetSalaryById(salaryId);
32+
const data = await GetSalaryById(salaryId, Cookies.get("accessToken"));
3333
setSalary(data);
3434
console.log(data);
3535
};

src/components/jobs/OffCampusCard.tsx

-14
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
import React from "react";
2-
import Link from "next/link";
32
import { Separator } from "../ui/separator";
4-
import { fetchJobSalary } from "@/helpers/api";
5-
import { cookies } from "next/headers";
63
import { useState, useEffect } from 'react';
7-
import {JobDetails} from "@/dummyData/jobdetails"
84
import { Button } from "@/components/ui/button";
9-
import {
10-
Select,
11-
SelectContent,
12-
SelectGroup,
13-
SelectItem,
14-
SelectLabel,
15-
SelectTrigger,
16-
SelectValue,
17-
} from "@/components/ui/select"
185
import { OffCampusOffer } from "@/helpers/student/types";
19-
import { GetSalaryById } from "@/helpers/student/api";
206
interface Props {
217
jobItem: OffCampusOffer;
228
}

src/components/jobs/SalaryCard.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import {
44
Table,
55
TableHeader,
66
TableBody,
7-
TableFooter,
87
TableHead,
98
TableRow,
109
TableCell,
1110
} from "@/components/ui/table";
12-
import { SampleJobData } from "@/dummyData/job";
1311
import { Separator } from "@/components/ui/separator";
1412
import { Salary } from "@/helpers/student/types";
1513
import { GetSalaryById } from "@/helpers/student/api";
14+
import Cookies from "js-cookie";
1615

1716
interface Props{
1817
salaryId: string;
@@ -23,7 +22,7 @@ export default function SalaryCard({salaryId}: Props) {
2322

2423
useEffect(() => {
2524
const fetchSalaryData = async () => {
26-
const data = await GetSalaryById(salaryId);
25+
const data = await GetSalaryById(salaryId, Cookies.get("accessToken"));
2726
setSalaryData(data);
2827
};
2928

0 commit comments

Comments
 (0)