Skip to content

Commit

Permalink
nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-tf authored and mittal-ishaan committed Jun 15, 2024
1 parent 628790d commit 54fbb36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/components/jobs/JobCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { OnCampusOffers, Salary, Resume } from "@/helpers/student/types";
import { ApplyJob, GetSalaryById } from "@/helpers/student/api";
import Cookies from "js-cookie";
import toast, { Toaster } from "react-hot-toast";
import toast from "react-hot-toast";
interface Props {
jobItem: OnCampusOffers;
salaryId: string;
Expand All @@ -29,7 +29,7 @@ const JobCard = ({ jobItem, salaryId, resumes }: Props) => {

useEffect(() => {
const fetchSalary = async () => {
const data = await GetSalaryById(salaryId);
const data = await GetSalaryById(salaryId, Cookies.get("accessToken"));
setSalary(data);
console.log(data);
};
Expand Down
14 changes: 0 additions & 14 deletions src/components/jobs/OffCampusCard.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
import React from "react";
import Link from "next/link";
import { Separator } from "../ui/separator";
import { fetchJobSalary } from "@/helpers/api";
import { cookies } from "next/headers";
import { useState, useEffect } from 'react';
import {JobDetails} from "@/dummyData/jobdetails"
import { Button } from "@/components/ui/button";
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectLabel,
SelectTrigger,
SelectValue,
} from "@/components/ui/select"
import { OffCampusOffer } from "@/helpers/student/types";
import { GetSalaryById } from "@/helpers/student/api";
interface Props {
jobItem: OffCampusOffer;
}
Expand Down
5 changes: 2 additions & 3 deletions src/components/jobs/SalaryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ import {
Table,
TableHeader,
TableBody,
TableFooter,
TableHead,
TableRow,
TableCell,
} from "@/components/ui/table";
import { SampleJobData } from "@/dummyData/job";
import { Separator } from "@/components/ui/separator";
import { Salary } from "@/helpers/student/types";
import { GetSalaryById } from "@/helpers/student/api";
import Cookies from "js-cookie";

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

useEffect(() => {
const fetchSalaryData = async () => {
const data = await GetSalaryById(salaryId);
const data = await GetSalaryById(salaryId, Cookies.get("accessToken"));
setSalaryData(data);
};

Expand Down

0 comments on commit 54fbb36

Please sign in to comment.