{approval.logs?.map((approvalLog, logIdx) => {
const action =
approvalLog.action === 'CREATED'
? 'Dibuat'
: approvalLog.action === 'UPDATED'
? 'Diperbarui'
: approvalLog.action === 'APPROVED'
? 'Disetujui'
: approvalLog.action === 'REJECTED'
? 'Ditolak'
: '-';
return (
{approvalLog.date && (
{formatDate(
approvalLog.date,
'YYYY-MM-DD, HH:mm:ss'
)}
)}
Aksi: {action}
Oleh: {approvalLog.action_by ?? '-'}
Catatan: {approvalLog.notes ?? '-'}
);
})}
)}
>
}
>