* Remove hasura and hasura-auth * Move all models to prisma * Start implementing graphql * chore: clean package json * chore: make the code build * chore: get initial graphql.tsx file * feature: use typegql as qgl server * refactor: small refactoring * refactor: clean tests * bugfix: make all filters not case sensitive * chore: remove unused imports --------- Co-authored-by: Sammy Teillet <sammy.teillet@gmail.com>
43 lines
892 B
TypeScript
43 lines
892 B
TypeScript
import {
|
|
TbBuilding,
|
|
TbCalendar,
|
|
TbLink,
|
|
TbMapPin,
|
|
TbSum,
|
|
} from 'react-icons/tb';
|
|
import { CompanyOrderByWithRelationInput as Companies_Order_By } from '../../generated/graphql';
|
|
import { SortType } from '../../interfaces/sorts/interface';
|
|
|
|
export const availableSorts = [
|
|
{
|
|
key: 'name',
|
|
label: 'Name',
|
|
icon: <TbBuilding size={16} />,
|
|
_type: 'default_sort',
|
|
},
|
|
{
|
|
key: 'employees',
|
|
label: 'Employees',
|
|
icon: <TbSum size={16} />,
|
|
_type: 'default_sort',
|
|
},
|
|
{
|
|
key: 'domainName',
|
|
label: 'Url',
|
|
icon: <TbLink size={16} />,
|
|
_type: 'default_sort',
|
|
},
|
|
{
|
|
key: 'address',
|
|
label: 'Address',
|
|
icon: <TbMapPin size={16} />,
|
|
_type: 'default_sort',
|
|
},
|
|
{
|
|
key: 'createdAt',
|
|
label: 'Creation',
|
|
icon: <TbCalendar size={16} />,
|
|
_type: 'default_sort',
|
|
},
|
|
] satisfies Array<SortType<Companies_Order_By>>;
|