Added corporate display to Tickets table
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
TicketStatusLabel,
|
||||
TicketType,
|
||||
TicketTypeLabel,
|
||||
TicketWithCorporate,
|
||||
} from "@/interfaces/ticket";
|
||||
import { sessionOptions } from "@/lib/session";
|
||||
import { shouldRedirectHome } from "@/utils/navigation.disabled";
|
||||
@@ -28,7 +29,7 @@ import { useEffect, useState } from "react";
|
||||
import { BsArrowDown, BsArrowUp } from "react-icons/bs";
|
||||
import { ToastContainer } from "react-toastify";
|
||||
|
||||
const columnHelper = createColumnHelper<Ticket>();
|
||||
const columnHelper = createColumnHelper<TicketWithCorporate>();
|
||||
|
||||
export const getServerSideProps = withIronSessionSsr(({ req, res }) => {
|
||||
const user = req.session.user;
|
||||
@@ -173,6 +174,10 @@ export default function Tickets() {
|
||||
header: "Assignee",
|
||||
cell: (info) => users.find((x) => x.id === info.getValue())?.name || "",
|
||||
}),
|
||||
columnHelper.accessor("corporate", {
|
||||
header: "Corporate",
|
||||
cell: (info) => info.getValue(),
|
||||
}),
|
||||
];
|
||||
|
||||
const getAssigneeValue = () => {
|
||||
|
||||
Reference in New Issue
Block a user