Fitur notifikasi dan foreground
Add: - types/type-notification-category.ts Fix: - app/(application)/(user)/notifications/index.tsx - app/(application)/(user)/test-notifications.tsx - app/(application)/admin/notification/index.tsx - components/Notification/NotificationInitializer.tsx - hooks/use-notification-store.tsx - service/api-notifications.ts - utils/formatChatTime.ts ### No Issue
This commit is contained in:
@@ -17,7 +17,7 @@ export const formatChatTime = (date: string | Date): string => {
|
||||
|
||||
// Jika hari ini
|
||||
if (messageDate.isSame(now, 'day')) {
|
||||
return messageDate.format('HH.mm'); // contoh: "14.30"
|
||||
return messageDate.format('HH:mm'); // contoh: "14.30"
|
||||
}
|
||||
|
||||
// Jika kemarin
|
||||
@@ -31,5 +31,5 @@ export const formatChatTime = (date: string | Date): string => {
|
||||
}
|
||||
|
||||
// Lebih dari seminggu lalu → tampilkan tanggal
|
||||
return messageDate.format('D MMM YYYY'); // contoh: "12 Mei 2024"
|
||||
return messageDate.format('D MMM YYYY HH:mm'); // contoh: "12 Mei 2024 14:30"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user