customers list
This commit is contained in:
@@ -4,6 +4,7 @@ import TrashWithConfrim from '@/components/TrashWithConfrim'
|
||||
import { Eye } from 'iconsax-react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { Pages } from '@/config/Pages'
|
||||
import { formatOptionalDate } from '@/helpers/func'
|
||||
|
||||
interface GetRoleTableColumnsParams {
|
||||
onDelete?: (id: string) => void
|
||||
@@ -27,7 +28,7 @@ export const getRoleTableColumns = ({ onDelete, isDeleting }: GetRoleTableColumn
|
||||
key: 'createdAt',
|
||||
title: 'تاریخ ایجاد',
|
||||
render: (item: RoleType) => {
|
||||
return new Date(item.createdAt).toLocaleDateString('fa-IR')
|
||||
return formatOptionalDate(item.createdAt)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user