+ Build an application in Flutter and connect REST APIs to provide a
+ seamless experience to users
+
+
+ Take ownership of the application and work alongside backend and
+ database engineers to deliver tasks based on timeline
+
+
Work with 3rd party services to integrate in app
+
+ Attend daily standup calls to discuss team updates and next tasks
+
+
+
+
+
+
Skill(s) Required
+
+
+ Algorithms
+
+
+ Android
+
+
+ Data Structures
+
+
+ Firebase
+
+
+ iOS
+
+
+ Flutter
+
+
+ REST API
+
+
+
+
+
+
Who can apply
+
+
are available for the work from home job/internship
+
+ can work from 8:00 pm - 2:00 am Indian Standard Time (as the company
+ is based outside of India & their local work timings are 9:30 am -
+ 3:30 pm Eastern Standard Time)
+
+
+ can start the work from home job/internship between 4th Jan24 and
+ 8th Feb24
+
diff --git a/src/components/jobs/OffCampusCard.tsx b/src/components/jobs/OffCampusCard.tsx
index 79500b2b..ac600539 100644
--- a/src/components/jobs/OffCampusCard.tsx
+++ b/src/components/jobs/OffCampusCard.tsx
@@ -1,45 +1,17 @@
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;
}
const OffCampusCard = ({ jobItem }: Props) => {
- const [showDescription, setShowDescription] = useState(false);
-
- const handleViewDetails = () => {
- setShowDescription(!showDescription);
- };
-
- const roundOff = (n: number) => {
- return Math.round((n + Number.EPSILON) * 100) / 100;
- };
-
function formatNumber(num: number): string {
if (num >= 1e7) {
- // Convert to Crores
const crores = num / 1e7;
return `₹${crores.toFixed(2)} Crores`;
} else if (num >= 1e5) {
- // Convert to Lakhs
const lakhs = num / 1e5;
return `₹${lakhs.toFixed(2)} Lakhs`;
} else {
@@ -56,106 +28,34 @@ const OffCampusCard = ({ jobItem }: Props) => {
-
+
Role
{" "}
{jobItem.role}
+
+
Salary
{" "}
+
{formatNumber(jobItem.salary)}
+
Period
{" "}
{jobItem.salaryPeriod}
-
Salary
{" "}
-
{jobItem.salary}
+
Status
{" "}
+
{jobItem.status}
Category
{" "}
{jobItem.company.category}
-
-
Type
{" "}
-
{jobItem.season.type}
-
+
+
+
+
+
+ {jobItem.metadata}
- {showDescription && (
-
-
-
-
-
-
-
About The Work
-
-
-
-
-
- Build an application in Flutter and connect REST APIs to provide a
- seamless experience to users
-
-
- Take ownership of the application and work alongside backend and
- database engineers to deliver tasks based on timeline
-
-
Work with 3rd party services to integrate in app
-
- Attend daily standup calls to discuss team updates and next tasks
-
-
-
-
-
-
Skill(s) Required
-
-
- Algorithms
-
-
- Android
-
-
- Data Structures
-
-
- Firebase
-
-
- iOS
-
-
- Flutter
-
-
- REST API
-
-
-
-
-
-
Who can apply
-
-
are available for the work from home job/internship
-
- can work from 8:00 pm - 2:00 am Indian Standard Time (as the company
- is based outside of India & their local work timings are 9:30 am -
- 3:30 pm Eastern Standard Time)
-
-
- can start the work from home job/internship between 4th Jan24 and
- 8th Feb24
-
- Build an application in Flutter and connect REST APIs to provide a
- seamless experience to users
-
-
- Take ownership of the application and work alongside backend and
- database engineers to deliver tasks based on timeline
-
-
Work with 3rd party services to integrate in app
-
- Attend daily standup calls to discuss team updates and next tasks
-
-
-
-
-
-
Skill(s) Required
-
-
- Algorithms
-
-
- Android
-
-
- Data Structures
-
-
- Firebase
-
-
- iOS
-
-
- Flutter
-
-
- REST API
-
-
-
-
-
-
Who can apply
-
-
are available for the work from home job/internship
-
- can work from 8:00 pm - 2:00 am Indian Standard Time (as the company
- is based outside of India & their local work timings are 9:30 am -
- 3:30 pm Eastern Standard Time)
-
-
- can start the work from home job/internship between 4th Jan24 and
- 8th Feb24
-
-
are available for duration of 3 months
-
have relevant skills and interests
-
-
-
- )}
+
+
Gross Salary
{" "}
+
{formatNumber(salary.grossSalary)}
+
+
+
Other compensations
{" "}
+
{formatNumber(salary.otherCompensations)}
+
+
)}
diff --git a/src/components/jobs/SalaryCard.tsx b/src/components/jobs/SalaryCard.tsx
index 7096f1c5..f372232a 100644
--- a/src/components/jobs/SalaryCard.tsx
+++ b/src/components/jobs/SalaryCard.tsx
@@ -4,19 +4,16 @@ import {
Table,
TableHeader,
TableBody,
- TableFooter,
TableHead,
TableRow,
TableCell,
} from "@/components/ui/table";
-import { SampleJobData } from "@/dummyData/job";
import { Separator } from "@/components/ui/separator";
import { Resume, Salary } from "@/helpers/student/types";
import { ApplyJob, GetSalaryById } from "@/helpers/student/api";
import { Button } from "../ui/button";
-import Link from "next/link";
import Cookies from "js-cookie";
-import toast, { Toaster } from "react-hot-toast";
+import toast from "react-hot-toast";
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from "../ui/select";
interface Props{
@@ -57,21 +54,14 @@ export default function SalaryCard({salaryId, resumes}: Props) {
setIsopen(!isopen);
};
- const roundOff = (n: number) => {
- return Math.round((n + Number.EPSILON) * 100) / 100;
- };
-
function formatNumber(num: number): string {
if (num >= 1e7) {
- // Convert to Crores
const crores = num / 1e7;
return `₹${crores.toFixed(2)} Crores`;
} else if (num >= 1e5) {
- // Convert to Lakhs
const lakhs = num / 1e5;
return `₹${lakhs.toFixed(2)} Lakhs`;
} else if (num >= 1e3) {
- // Convert to Lakhs
const lakhs = num / 1e3;
return `₹${lakhs.toFixed(2)}K`;
} else {
@@ -158,14 +148,31 @@ export default function SalaryCard({salaryId, resumes}: Props) {
- {roundOff(salaryData?.minCPI)}
- {roundOff(salaryData?.tenthMarks)} %
- {roundOff(salaryData?.twelthMarks)} %
+ {salaryData?.minCPI.toFixed(2)}
+ {(salaryData?.tenthMarks*10).toFixed(2)} %
+ {(salaryData?.twelthMarks*10).toFixed(2)} %