added msisdn on table

This commit is contained in:
bagusajisaputroo
2025-04-24 14:35:19 +07:00
parent 132861fcb5
commit a52bd9e951
2 changed files with 23 additions and 0 deletions

View File

@ -209,6 +209,15 @@ const ManageKycDeletionContextProvider = ({ children }: { children: React.ReactN
headerClassName: 'w-[350px]' headerClassName: 'w-[350px]'
} }
}, },
{
accessorFn: (row) => row.msisdn,
id: 'msdisdn',
header: ({ column }) => <DataGridColumnHeader title="Phone Number" column={column} />,
enableSorting: true,
meta: {
headerClassName: 'w-[350px]'
}
},
{ {
accessorFn: (row) => row.registered_email, accessorFn: (row) => row.registered_email,
id: 'email', id: 'email',

View File

@ -70,6 +70,20 @@ export const getColumns = (handleUpdate: (data: any) => void): ColumnDef<Members
); );
} }
}, },
{
accessorKey: 'msisdn',
header: ({ column }) => {
return (
<Button
variant="ghost"
onClick={() => column.toggleSorting(column.getIsSorted() === 'asc')}
>
Phone Number
<ArrowUpDown className="ml-2 h-4 w-4" />
</Button>
);
}
},
{ {
accessorKey: 'group_name', accessorKey: 'group_name',
header: ({ column }) => { header: ({ column }) => {