Icon refactoring (#287)

* Refactor icons

* Fix additional icons
This commit is contained in:
Félix Malfait
2023-06-14 07:55:54 +02:00
committed by GitHub
parent 7e73f013d1
commit 830b76cd9a
34 changed files with 194 additions and 161 deletions

View File

@ -1,43 +1,42 @@
import {
TbBuilding,
TbCalendar,
TbLink,
TbMapPin,
TbSum,
} from 'react-icons/tb';
import { SortType } from '@/filters-and-sorts/interfaces/sorts/interface';
import {
IconBuilding,
IconCalendar,
IconLink,
IconMapPin,
IconSum,
} from '@/ui/icons/index';
import { CompanyOrderByWithRelationInput as Companies_Order_By } from '~/generated/graphql';
export const availableSorts = [
{
key: 'name',
label: 'Name',
icon: <TbBuilding size={16} />,
icon: <IconBuilding size={16} />,
_type: 'default_sort',
},
{
key: 'employees',
label: 'Employees',
icon: <TbSum size={16} />,
icon: <IconSum size={16} />,
_type: 'default_sort',
},
{
key: 'domainName',
label: 'Url',
icon: <TbLink size={16} />,
icon: <IconLink size={16} />,
_type: 'default_sort',
},
{
key: 'address',
label: 'Address',
icon: <TbMapPin size={16} />,
icon: <IconMapPin size={16} />,
_type: 'default_sort',
},
{
key: 'createdAt',
label: 'Creation',
icon: <TbCalendar size={16} />,
icon: <IconCalendar size={16} />,
_type: 'default_sort',
},
] satisfies Array<SortType<Companies_Order_By>>;