update interface, diary
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
export type TripStatus =
|
||||
| "completed"
|
||||
| "in-progress"
|
||||
| "cancelled"
|
||||
| "quality-check";
|
||||
| "created" // Đã khởi tạo
|
||||
| "pending" // Chờ duyệt
|
||||
| "approved" // Đã duyệt
|
||||
| "in-progress" // Đang hoạt động
|
||||
| "completed" // Hoàn thành
|
||||
| "cancelled"; // Đã hủy
|
||||
|
||||
export interface Trip {
|
||||
id: string;
|
||||
@@ -17,28 +19,40 @@ export interface Trip {
|
||||
}
|
||||
|
||||
export const TRIP_STATUS_CONFIG = {
|
||||
completed: {
|
||||
label: "Hoàn thành",
|
||||
bgColor: "#D1FAE5",
|
||||
textColor: "#065F46",
|
||||
icon: "checkmark-circle",
|
||||
created: {
|
||||
label: "Đã khởi tạo",
|
||||
bgColor: "#F3F4F6", // Gray background
|
||||
textColor: "#4B5563", // Gray text
|
||||
icon: "document-text",
|
||||
},
|
||||
pending: {
|
||||
label: "Chờ duyệt",
|
||||
bgColor: "#FEF3C7", // Yellow background
|
||||
textColor: "#92400E", // Dark yellow text
|
||||
icon: "hourglass",
|
||||
},
|
||||
approved: {
|
||||
label: "Đã duyệt",
|
||||
bgColor: "#E0E7FF", // Indigo background
|
||||
textColor: "#3730A3", // Dark indigo text
|
||||
icon: "checkmark-done",
|
||||
},
|
||||
"in-progress": {
|
||||
label: "Đang diễn ra",
|
||||
bgColor: "#DBEAFE",
|
||||
textColor: "#1E40AF",
|
||||
icon: "time",
|
||||
label: "Đang hoạt động",
|
||||
bgColor: "#DBEAFE", // Blue background
|
||||
textColor: "#1E40AF", // Dark blue text
|
||||
icon: "sync",
|
||||
},
|
||||
completed: {
|
||||
label: "Hoàn thành",
|
||||
bgColor: "#D1FAE5", // Green background
|
||||
textColor: "#065F46", // Dark green text
|
||||
icon: "checkmark-circle",
|
||||
},
|
||||
cancelled: {
|
||||
label: "Đã hủy",
|
||||
bgColor: "#FEE2E2",
|
||||
textColor: "#991B1B",
|
||||
bgColor: "#FEE2E2", // Red background
|
||||
textColor: "#991B1B", // Dark red text
|
||||
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