Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions jportal/src/components/Grades.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
import GradeCard from "./GradeCard";
import { Button } from "@/components/ui/button";
import { Download } from "lucide-react";
import { CalculatorIcon, Download } from "lucide-react";
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog";
import MarksCard from "./MarksCard";
import CGPATargetCalculator from "./TargetCPA";
import { generate_local_name, API } from "https://cdn.jsdelivr.net/npm/jsjiit@0.0.16/dist/jsjiit.esm.js";
import MockWebPortal from "./MockWebPortal";

Expand Down Expand Up @@ -392,7 +393,12 @@ export default function Grades({
</div>
</>
)}
<div className="w-full flex justify-end my-4 max-w-4xl">
<div className="w-full flex justify-end my-4 max-w-4xl gap-2">
<CGPATargetCalculator
w={w}
semesterData={semesterData}
guest={w instanceof MockWebPortal}
/>
<Button
variant="secondary"
className="flex items-center gap-2 text-popover-foreground hover:text-accent-foreground border-border bg-background hover:bg-accent px-2 cursor-pointer"
Expand Down Expand Up @@ -444,7 +450,12 @@ export default function Grades({
)}
</>
)}
<div className="w-full flex justify-end my-4 max-w-4xl">
<div className="w-full flex justify-end my-4 max-w-4xl gap-2">
<CGPATargetCalculator
w={w}
semesterData={semesterData}
guest={w instanceof MockWebPortal}
/>
<Button
variant="secondary"
className="flex items-center gap-2 text-popover-foreground hover:text-accent-foreground border-border bg-background hover:bg-accent px-2 cursor-pointer"
Expand Down Expand Up @@ -492,7 +503,12 @@ export default function Grades({
)}
</>
)}
<div className="w-full flex justify-end my-4 max-w-4xl">
<div className="w-full flex justify-end my-4 max-w-4xl gap-2">
<CGPATargetCalculator
w={w}
semesterData={semesterData}
guest={w instanceof MockWebPortal}
/>
<Button
variant="secondary"
className="flex items-center gap-2 text-popover-foreground hover:text-accent-foreground border-border bg-background hover:bg-accent px-2 cursor-pointer"
Expand Down
Loading