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