fix(view): adjustment view page notification

This commit is contained in:
zain94rif
2026-01-05 10:39:01 +07:00
parent ec094b8f55
commit b342289888

View File

@@ -64,7 +64,7 @@ const transformNotificationData = (apiData) => {
}) + ' WIB'
: 'N/A',
location: item.plant_sub_section_name || item.device_location || 'Location not specified',
details: item.message_error_issue || 'No details available',
details: item.device_name || '-',
link: `/verification-sparepart/${item.notification_error_id}`, // Dummy URL untuk verifikasi spare part
subsection: item.plant_sub_section_name || 'N/A',
isRead: item.is_read,
@@ -396,7 +396,7 @@ const ListNotification = memo(function ListNotification(props) {
</div>
</Col>
<Col flex="auto">
<div
{/* <div
style={{
display: 'flex',
gap: '8px',
@@ -419,12 +419,18 @@ const ListNotification = memo(function ListNotification(props) {
>
{notification.details}
</Paragraph>
</div>
</div> */}
<Space
direction="vertical"
size={4}
style={{ fontSize: '13px', color: '#8c8c8c' }}
>
<Space>
<MobileOutlined />
<Text type="secondary">
{notification.details}
</Text>
</Space>
<Space>
<ClockCircleOutlined />
<Text type="secondary">
@@ -438,17 +444,10 @@ const ListNotification = memo(function ListNotification(props) {
</Text>
</Space>
<Space>
<LinkOutlined />
<AntdLink
href={notification.link}
target="_blank"
>
{notification.link}
</AntdLink>
<Button
type="link"
icon={<SendOutlined />}
style={{ paddingLeft: '8px' }}
style={{ paddingLeft: '0px' }}
onClick={(e) => {
e.stopPropagation();
handleResend(notification);