mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
refactor(FE-208,212): enhance approval button layout and add reject option in PurchaseOrderDetail
This commit is contained in:
@@ -522,17 +522,37 @@ const PurchaseOrderDetail = ({
|
||||
return (
|
||||
<section className='w-full'>
|
||||
{/* 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 && (
|
||||
<Button
|
||||
onClick={handleApprovalClick}
|
||||
variant='outline'
|
||||
color='success'
|
||||
className='w-full sm:w-fit'
|
||||
>
|
||||
<Icon icon='material-symbols:check' width={20} height={20} />
|
||||
Approve
|
||||
</Button>
|
||||
<div className='flex flex-row gap-2'>
|
||||
<Button
|
||||
onClick={handleApprovalClick}
|
||||
variant='outline'
|
||||
color='success'
|
||||
className='w-full sm:w-fit'
|
||||
>
|
||||
<Icon icon='material-symbols:check' width={24} height={24} />
|
||||
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user