feat(FE-170): refactor approval history button and badge components in RecordingTable

This commit is contained in:
rstubryan
2025-11-05 14:00:02 +07:00
parent b1457a5feb
commit 2cf8bcf746
@@ -186,12 +186,13 @@ const ApprovalHistoryModal = ({
{/* Header */}
<div className='flex items-center justify-between'>
<h2 className='text-xl font-bold'>Riwayat Approval</h2>
<button
<Button
onClick={closeModalHandler}
className='btn btn-sm btn-circle btn-ghost'
variant='ghost'
className='btn-circle btn-sm p-0'
>
<Icon icon='mdi:close' width={20} height={20} />
</button>
</Button>
</div>
{isLoading ? (
@@ -697,15 +698,18 @@ const RecordingTable = () => {
};
return (
<button
<Badge
variant='soft'
color={statusColor}
className={{
badge:
'cursor-pointer hover:opacity-80 transition-opacity whitespace-nowrap',
}}
onClick={openApprovalHistory}
className='btn btn-ghost btn-xs p-0 h-auto min-h-0 text-left hover:bg-transparent'
title='Klik untuk lihat riwayat approval'
>
<Badge variant='soft' color={statusColor} size='sm'>
{approval.step_name}
</Badge>
</button>
{approval.step_name}
</Badge>
);
},
},