diff --git a/src/pages/notificationDetail/IndexNotificationDetail.jsx b/src/pages/notificationDetail/IndexNotificationDetail.jsx index b4d3bf5..5896456 100644 --- a/src/pages/notificationDetail/IndexNotificationDetail.jsx +++ b/src/pages/notificationDetail/IndexNotificationDetail.jsx @@ -102,6 +102,8 @@ const transformNotificationData = (apiData) => { brand_name: apiData.brand_name, }, users: apiData.users || [], + is_reminder: apiData.is_reminder || false, + spareparts_reminder: apiData.spareparts_reminder || [], }; }; @@ -362,6 +364,104 @@ const NotificationDetailTab = (props) => { {/* Kolom Kiri: Data Kompresor */} + {notification.is_reminder == false && ( + + + + + +
+ +
+ + + {notification.title} +
+ + Error Code {notification.issue} + +
+ +
+
+ Plant Subsection +
{notification.location}
+ + Date & Time + +
{notification.timestamp}
+
+
+
+ + )} + {/* Kolom Tengah: Informasi Teknis */} + + + +
+ Error Channel +
{notification.error_chanel || 'N/A'}
+
+
+ Device Code +
+ {notification.device_info?.device_code || 'N/A'} +
+
+
+ Device Name +
+ {notification.device_info?.device_name || 'N/A'} +
+
+
+ Device Location +
+ {notification.device_info?.device_location || 'N/A'} +
+
+
+ Brand +
+ {notification.device_info?.brand_name || 'N/A'} +
+
+
+
+ + {notification.is_reminder == true && (
@@ -515,104 +615,6 @@ const NotificationDetailTab = (props) => { )} - {notification.is_reminder == false && ( - - - - - -
- -
- - - {notification.title} -
- - Error Code {notification.issue} - -
- -
-
- Plant Subsection -
{notification.location}
- - Date & Time - -
{notification.timestamp}
-
-
-
- - )} - {/* Kolom Tengah: Informasi Teknis */} - - - -
- Error Channel -
{notification.error_chanel || 'N/A'}
-
-
- Device Code -
- {notification.device_info?.device_code || 'N/A'} -
-
-
- Device Name -
- {notification.device_info?.device_name || 'N/A'} -
-
-
- Device Location -
- {notification.device_info?.device_location || 'N/A'} -
-
-
- Brand -
- {notification.device_info?.brand_name || 'N/A'} -
-
-
-
- - {/* Kolom Kanan: User History */}