You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

import {format} from 'date-fns'
3 years ago
import {ColumnFilter} from './ColumnFilter';
3 years ago
export const COLUMNS = [
{
Header: 'نام و نام خانوادگی',
Footer: 'نام و نام خانوادگی',
3 years ago
accessor: 'name',
disableSortBy: true,
3 years ago
},
{
Header: 'تاریخ سفارش',
Footer: 'تاریخ سفارش',
3 years ago
accessor: 'order-date',
Cell: ({ value }) => { return format(new Date (value), 'dd/MM/yyyy') }
3 years ago
},
{
Header: 'مبلغ سفارش',
Footer: 'مبلغ سفارش',
3 years ago
accessor: 'order-price',
3 years ago
Filter: ColumnFilter
3 years ago
},
{
Header: 'شماره سفارش',
Footer: 'شماره سفارش',
3 years ago
accessor: 'order-number',
},
{
Header: 'شغل کاربر',
Footer: 'شغل کاربر',
3 years ago
accessor: 'user-job',
},
{
Header: 'وضعیت سفارش',
Footer: 'وضعیت سفارش',
3 years ago
accessor: 'order-status',
},
{
Header: 'سطح اهمیت',
Footer: 'سطح اهمیت',
3 years ago
accessor: 'order-level',
disableSortBy: true,
3 years ago
},
]