Enhance passenger API and web application functionality

This commit is contained in:
Stephanos A
2026-06-03 11:15:14 +03:00
parent 8d6d853305
commit 6f4ce7d49a
12 changed files with 161 additions and 98 deletions

View File

@@ -16,6 +16,10 @@ export const formatDateTime = (date: string | Date): string => {
return format(new Date(date), 'MMM dd, yyyy HH:mm');
};
export const formatDateTimeLocal = (date: string | Date): string => {
return format(new Date(date), 'MMM dd, yyyy HH:mm');
};
export const getStatusColor = (status: string): string => {
const colors: Record<string, string> = {
CONFIRMED: 'bg-green-100 text-green-800 dark:bg-green-900/20 dark:text-green-400',