refactor(FE): Remove unused imports and redundant code

This commit is contained in:
rstubryan
2026-02-20 14:17:26 +07:00
parent de0f9ae985
commit 1f2f3acebb
90 changed files with 222 additions and 474 deletions
@@ -84,7 +84,6 @@ interface PurchaseOrderDetailProps {
}
const PurchaseOrderDetail = ({
type = 'detail',
initialValues,
refetchData,
}: PurchaseOrderDetailProps) => {
@@ -1042,7 +1041,7 @@ const PurchaseOrderDetail = ({
ref={staffApprovalModal.ref}
closeOnBackdrop
className={{
modalBox: 'w-full max-w-screen-2xl max-h-[90vh] overflow-y-auto',
modalBox: 'w-full max-w-2xl max-h-[90vh] overflow-y-auto',
}}
>
<PurchaseOrderStaffApprovalForm
@@ -1061,7 +1060,7 @@ const PurchaseOrderDetail = ({
ref={acceptApprovalModal.ref}
closeOnBackdrop
className={{
modalBox: 'w-full max-w-screen-2xl max-h-[90vh] overflow-y-auto',
modalBox: 'w-full max-w-2xl max-h-[90vh] overflow-y-auto',
}}
>
<PurchaseOrderAcceptApprovalForm
@@ -1079,7 +1078,7 @@ const PurchaseOrderDetail = ({
ref={editModal.ref}
closeOnBackdrop
className={{
modalBox: 'w-full max-w-screen-2xl max-h-[90vh] overflow-y-auto',
modalBox: 'w-full max-w-2xl max-h-[90vh] overflow-y-auto',
}}
>
<PurchaseOrderStaffApprovalForm
@@ -1098,7 +1097,7 @@ const PurchaseOrderDetail = ({
ref={penerimaanBarangModal.ref}
closeOnBackdrop
className={{
modalBox: 'w-full max-w-screen-2xl max-h-[90vh] overflow-y-auto',
modalBox: 'w-full max-w-2xl max-h-[90vh] overflow-y-auto',
}}
>
<PurchaseOrderAcceptApprovalForm