Files
twenty_crm/front/src/pages/companies/companies-sorts.tsx
Lucas Bordeau 28ca9a9e49 Refactor/new menu item (#1448)
* wip

* finished

* Added disabled

* Fixed disabled

* Finished cleaning

* Minor fixes from merge

* Added docs

* Added PascalCase

* Fix from review

* Fixes from merge

* Fix lint

* Fixed storybook tests
2023-09-06 16:41:26 +02:00

38 lines
720 B
TypeScript

import { SortType } from '@/ui/filter-n-sort/types/interface';
import {
IconBuildingSkyscraper,
IconCalendarEvent,
IconLink,
IconMap,
IconUsers,
} from '@/ui/icon/index';
import { CompanyOrderByWithRelationInput as Companies_Order_By } from '~/generated/graphql';
export const availableSorts: SortType<Companies_Order_By>[] = [
{
key: 'name',
label: 'Name',
Icon: IconBuildingSkyscraper,
},
{
key: 'employees',
label: 'Employees',
Icon: IconUsers,
},
{
key: 'domainName',
label: 'Url',
Icon: IconLink,
},
{
key: 'address',
label: 'Address',
Icon: IconMap,
},
{
key: 'createdAt',
label: 'Creation',
Icon: IconCalendarEvent,
},
];