feat: add link to organization details in data-table
This commit is contained in:
parent
24f301fcaa
commit
02cd9f91a4
@ -14,6 +14,7 @@ import Form from "#/components/form/form";
|
||||
import { icons } from "#/assets/icons";
|
||||
import { adminSchema, companySchema } from "#/schema";
|
||||
import { Admin, Company } from "#/types";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function Organizations() {
|
||||
const { data: session, status } = useSession();
|
||||
@ -180,6 +181,14 @@ export default function Organizations() {
|
||||
{
|
||||
accessorKey: "name",
|
||||
header: "Organisations",
|
||||
cell: ({ row }) => {
|
||||
const company = row.original;
|
||||
return (
|
||||
<Link href={`/admin/organizations/${company.id}`}>
|
||||
<p className="text-blue-600 hover:underline">{company.name}</p>
|
||||
</Link>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: "total_users",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user