Refactor NotificationDetailTab component to use strict equality for reminder checks, enhancing clarity in rendering logic for reminder and non-reminder notifications. #48

Merged
bragaz_rexita merged 1 commits from lavoce into main 2026-04-30 09:46:08 +00:00
Showing only changes of commit 4c5f6b7e5c - Show all commits

View File

@@ -362,7 +362,7 @@ const NotificationDetailTab = (props) => {
<Row gutter={[8, 8]}> <Row gutter={[8, 8]}>
{/* Kolom Kiri: Data Kompresor */} {/* Kolom Kiri: Data Kompresor */}
{notification.is_reminder && ( {notification.is_reminder == true && (
<Col xs={24} md={8}> <Col xs={24} md={8}>
<div> <div>
<Card hoverable bodyStyle={{ padding: '12px' }}> <Card hoverable bodyStyle={{ padding: '12px' }}>
@@ -514,8 +514,8 @@ const NotificationDetailTab = (props) => {
</div> </div>
</Col> </Col>
)} )}
{!notification.is_reminder && ( {notification.is_reminder == false && (
<Col xs={24} lg={8}> <Col xs={24} lg={8}>
<Card <Card
size="small" size="small"