Added Student ID to the Master Statistical

This commit is contained in:
Tiago Ribeiro
2024-09-09 14:43:05 +01:00
parent b9c097d42c
commit 85c8f622ee
2 changed files with 16 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import React, {useEffect, useMemo, useState} from "react";
import {CorporateUser, User} from "@/interfaces/user";
import {CorporateUser, StudentUser, User} from "@/interfaces/user";
import {BsFileExcel, BsBank, BsPersonFill} from "react-icons/bs";
import IconCard from "../IconCard";
@@ -163,6 +163,13 @@ const MasterStatistical = (props: Props) => {
return <span>{info.getValue()}</span>;
},
}),
columnHelper.accessor("user", {
header: "Student ID",
id: "studentID",
cell: (info) => {
return <span>{(info.getValue() as StudentUser).studentID || "N/A"}</span>;
},
}),
...(displaySelection
? [
columnHelper.accessor("corporate", {
@@ -347,7 +354,7 @@ const MasterStatistical = (props: Props) => {
</div>
{renderSearch()}
<div className="flex flex-col gap-3 justify-end">
<Button className="max-w-[200px] h-[70px]" variant="outline" isLoading={downloading} onClick={triggerDownload}>
<Button className="w-[200px] h-[70px]" variant="outline" isLoading={downloading} onClick={triggerDownload}>
Download
</Button>
</div>