feature: add all the sortable fields for people
This commit is contained in:
@ -20,18 +20,20 @@ import PipeChip from '../../components/chips/PipeChip';
|
|||||||
import { SortType } from '../../components/table/table-header/SortAndFilterBar';
|
import { SortType } from '../../components/table/table-header/SortAndFilterBar';
|
||||||
|
|
||||||
export const sortsAvailable = [
|
export const sortsAvailable = [
|
||||||
{
|
|
||||||
id: 'created_at',
|
|
||||||
label: 'Created at',
|
|
||||||
order: 'asc',
|
|
||||||
icon: faCalendar,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'email',
|
id: 'email',
|
||||||
label: 'Email',
|
label: 'Email',
|
||||||
order: 'asc',
|
order: 'asc',
|
||||||
icon: faEnvelope,
|
icon: faEnvelope,
|
||||||
},
|
},
|
||||||
|
{ id: 'phone', label: 'Phone', order: 'asc', icon: faPhone },
|
||||||
|
{
|
||||||
|
id: 'created_at',
|
||||||
|
label: 'Created at',
|
||||||
|
order: 'asc',
|
||||||
|
icon: faCalendar,
|
||||||
|
},
|
||||||
|
{ id: 'city', label: 'City', order: 'asc', icon: faMapPin },
|
||||||
] satisfies Array<SortType<keyof GraphqlPerson>>;
|
] satisfies Array<SortType<keyof GraphqlPerson>>;
|
||||||
|
|
||||||
const columnHelper = createColumnHelper<Person>();
|
const columnHelper = createColumnHelper<Person>();
|
||||||
|
|||||||
Reference in New Issue
Block a user