diff --git a/src/components/pages/purchase/form/request/PurchaseRequisitionsForm.tsx b/src/components/pages/purchase/form/request/PurchaseRequisitionsForm.tsx
index f21cf02a..d60868c4 100644
--- a/src/components/pages/purchase/form/request/PurchaseRequisitionsForm.tsx
+++ b/src/components/pages/purchase/form/request/PurchaseRequisitionsForm.tsx
@@ -9,6 +9,7 @@ import { toast } from 'react-hot-toast';
import Button from '@/components/Button';
import TextInput from '@/components/input/TextInput';
import NumberInput from '@/components/input/NumberInput';
+import CheckboxInput from '@/components/input/CheckboxInput';
import SelectInput, {
OptionType,
useSelect,
@@ -665,15 +666,14 @@ const PurchaseRequisitionsForm = ({
{type !== 'detail' && (
|
- 0
}
- onChange={(e) => {
+ onChange={(e: React.ChangeEvent) => {
if (e.target.checked) {
setSelectedPurchaseItems(
formik.values.items?.map((_, idx) => idx) ?? []
@@ -682,6 +682,10 @@ const PurchaseRequisitionsForm = ({
setSelectedPurchaseItems([]);
}
}}
+ classNames={{
+ wrapper: 'flex justify-center',
+ checkbox: 'checkbox checkbox-sm',
+ }}
/>
|
)}
@@ -703,11 +707,10 @@ const PurchaseRequisitionsForm = ({
{type !== 'detail' && (
|
- {
+ onChange={(e: React.ChangeEvent) => {
if (e.target.checked) {
setSelectedPurchaseItems([
...selectedPurchaseItems,
@@ -719,6 +722,10 @@ const PurchaseRequisitionsForm = ({
);
}
}}
+ classNames={{
+ wrapper: 'flex justify-center',
+ checkbox: 'checkbox checkbox-sm',
+ }}
/>
|
)}