update tab diary
This commit is contained in:
44
components/diary/types.ts
Normal file
44
components/diary/types.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
export type TripStatus =
|
||||
| "completed"
|
||||
| "in-progress"
|
||||
| "cancelled"
|
||||
| "quality-check";
|
||||
|
||||
export interface Trip {
|
||||
id: string;
|
||||
title: string;
|
||||
code: string;
|
||||
vessel: string;
|
||||
vesselCode: string;
|
||||
departureDate: string;
|
||||
returnDate: string | null;
|
||||
duration: string;
|
||||
status: TripStatus;
|
||||
}
|
||||
|
||||
export const TRIP_STATUS_CONFIG = {
|
||||
completed: {
|
||||
label: "Hoàn thành",
|
||||
bgColor: "#D1FAE5",
|
||||
textColor: "#065F46",
|
||||
icon: "checkmark-circle",
|
||||
},
|
||||
"in-progress": {
|
||||
label: "Đang diễn ra",
|
||||
bgColor: "#DBEAFE",
|
||||
textColor: "#1E40AF",
|
||||
icon: "time",
|
||||
},
|
||||
cancelled: {
|
||||
label: "Đã hủy",
|
||||
bgColor: "#FEE2E2",
|
||||
textColor: "#991B1B",
|
||||
icon: "close-circle",
|
||||
},
|
||||
"quality-check": {
|
||||
label: "Khảo sát địa chất",
|
||||
bgColor: "#D1FAE5",
|
||||
textColor: "#065F46",
|
||||
icon: "checkmark-circle",
|
||||
},
|
||||
} as const;
|
||||
Reference in New Issue
Block a user