diff --git a/dashboard/src/features/users/tables/users/columns.tsx b/dashboard/src/features/users/tables/users/columns.tsx index 149bbf8..dc7c723 100644 --- a/dashboard/src/features/users/tables/users/columns.tsx +++ b/dashboard/src/features/users/tables/users/columns.tsx @@ -16,6 +16,7 @@ import { } from "@marzneshin/components" import { LinkIcon } from "lucide-react" import { getSubscriptionLink } from "@marzneshin/utils" +import { format } from "date-fns" interface ColumnAction { onDelete: (user: UserType) => void; @@ -41,6 +42,11 @@ export const columns = (actions: ColumnAction): ColumnDef[] => ([ header: ({ column }) => , cell: ({ row }) => }, + { + accessorKey: "expire", + header: ({ column }) => , + cell: ({ row }) => row.original.expire ? format(row.original.expire.toLocaleString(), "PPP") : "Unlimited" + }, { id: "actions", cell: ({ row }) => {