feat: persist view sorts (#1154)

Closes #1122
This commit is contained in:
Thaïs
2023-08-10 19:10:02 +02:00
committed by GitHub
parent 6b3a538c07
commit 80a562d90d
29 changed files with 991 additions and 103 deletions

View File

@ -8,7 +8,7 @@ import {
} from '@/ui/icon/index';
import { CompanyOrderByWithRelationInput as Companies_Order_By } from '~/generated/graphql';
export const availableSorts = [
export const availableSorts: SortType<Companies_Order_By>[] = [
{
key: 'name',
label: 'Name',
@ -34,4 +34,4 @@ export const availableSorts = [
label: 'Creation',
icon: <IconCalendarEvent size={16} />,
},
] satisfies Array<SortType<Companies_Order_By>>;
];