mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 07:15:44 +00:00
feat(FE-170): refactor approval history button and badge components in RecordingTable
This commit is contained in:
@@ -186,12 +186,13 @@ const ApprovalHistoryModal = ({
|
|||||||
{/* Header */}
|
{/* Header */}
|
||||||
<div className='flex items-center justify-between'>
|
<div className='flex items-center justify-between'>
|
||||||
<h2 className='text-xl font-bold'>Riwayat Approval</h2>
|
<h2 className='text-xl font-bold'>Riwayat Approval</h2>
|
||||||
<button
|
<Button
|
||||||
onClick={closeModalHandler}
|
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} />
|
<Icon icon='mdi:close' width={20} height={20} />
|
||||||
</button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
@@ -697,15 +698,18 @@ const RecordingTable = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<Badge
|
||||||
|
variant='soft'
|
||||||
|
color={statusColor}
|
||||||
|
className={{
|
||||||
|
badge:
|
||||||
|
'cursor-pointer hover:opacity-80 transition-opacity whitespace-nowrap',
|
||||||
|
}}
|
||||||
onClick={openApprovalHistory}
|
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'
|
title='Klik untuk lihat riwayat approval'
|
||||||
>
|
>
|
||||||
<Badge variant='soft' color={statusColor} size='sm'>
|
{approval.step_name}
|
||||||
{approval.step_name}
|
</Badge>
|
||||||
</Badge>
|
|
||||||
</button>
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user