refactor: simplify log history display in ListNotification component
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user