mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-13 16:00:02 +02:00
hide expire column
This commit is contained in:
@@ -372,30 +372,6 @@ export default function VirtualApiKeysTable({
|
|||||||
},
|
},
|
||||||
cell: ({ row }) => moment(row.original.createdAt).format("lll")
|
cell: ({ row }) => moment(row.original.createdAt).format("lll")
|
||||||
},
|
},
|
||||||
{
|
|
||||||
accessorKey: "expiresAt",
|
|
||||||
friendlyName: t("expires"),
|
|
||||||
header: ({ column }) => {
|
|
||||||
return (
|
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
onClick={() =>
|
|
||||||
column.toggleSorting(column.getIsSorted() === "asc")
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{t("expires")}
|
|
||||||
<ArrowUpDown className="ml-2 h-4 w-4" />
|
|
||||||
</Button>
|
|
||||||
);
|
|
||||||
},
|
|
||||||
cell: ({ row }) => {
|
|
||||||
const expiresAt = row.original.expiresAt;
|
|
||||||
if (expiresAt) {
|
|
||||||
return moment(expiresAt).format("lll");
|
|
||||||
}
|
|
||||||
return t("never");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "actions",
|
id: "actions",
|
||||||
enableHiding: false,
|
enableHiding: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user