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