refactor(FE-208,212): enhance approval button layout and add reject option in PurchaseOrderDetail

This commit is contained in:
rstubryan
2025-11-19 11:40:47 +07:00
parent e3274a3353
commit 9d6455167f
@@ -522,17 +522,37 @@ const PurchaseOrderDetail = ({
return ( return (
<section className='w-full'> <section className='w-full'>
{/* Approval and Action Buttons */} {/* Approval and Action Buttons */}
<div className='flex flex-wrap gap-3 my-6'> <div className='flex justify-between items-center w-full my-6'>
<Button
href='/purchase'
variant='link'
className='w-fit p-0 text-primary'
>
<Icon icon='uil:arrow-left' width={24} height={24} />
Kembali
</Button>
{showApprovalButton && ( {showApprovalButton && (
<Button <div className='flex flex-row gap-2'>
onClick={handleApprovalClick} <Button
variant='outline' onClick={handleApprovalClick}
color='success' variant='outline'
className='w-full sm:w-fit' color='success'
> className='w-full sm:w-fit'
<Icon icon='material-symbols:check' width={20} height={20} /> >
Approve <Icon icon='material-symbols:check' width={24} height={24} />
</Button> Approve
</Button>
<Button
variant='outline'
color='error'
className='w-full sm:w-fit'
>
<Icon icon='material-symbols:close' width={24} height={24} />
Reject
</Button>
</div>
)} )}
</div> </div>