refactor: simplify log history display in ListNotification component

This commit is contained in:
2025-11-20 11:00:46 +07:00
parent 6a21b65808
commit 5989948bf9

View File

@@ -1041,10 +1041,7 @@ const ListNotification = memo(function ListNotification(props) {
</Button>
</Space>
</Card>
{logHistoryData.slice(0, 2).map(
(
log // Menampilkan 2 log terbaru sebagai pratinjau
) => (
{logHistoryData.map((log) => (
<Card
key={log.id}
size="small"
@@ -1061,17 +1058,7 @@ const ListNotification = memo(function ListNotification(props) {
{log.timestamp}
</Text>
</Card>
)
)}
<div style={{ textAlign: 'center', paddingTop: '8px' }}>
<Button
type="link"
style={{ padding: 0 }}
onClick={() => setModalContent('log')}
>
View All Log History
</Button>
</div>
))}
</Space>
</Card>
</Col>