Refactor NotificationDetailTab component to use strict equality for reminder checks, enhancing clarity in rendering logic for reminder and non-reminder notifications.
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user