JournalTimetables: dodano resetowanie filtrów

This commit is contained in:
2022-09-10 18:22:00 +02:00
parent 1661881127
commit 065143c359
2 changed files with 18 additions and 8 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
import { JournalFilterType } from '../../scripts/enums/JournalFilterType';
export type JournalTimetableSearcher = {
export type JorunalTimetableSearchType = {
[key in 'search-driver' | 'search-train' | 'search-date']: string;
};
@@ -8,4 +8,9 @@ export interface JournalFilter {
id: JournalFilterType;
filterSection: string;
isActive: boolean;
}
}
export interface JournalSorter {
id: 'timetableId' | 'beginDate' | 'distance' | 'total-stops';
dir: -1 | 1;
}