diff --git a/src/components/pages/flock/recording/form/RecordingForm.tsx b/src/components/pages/flock/recording/form/RecordingForm.tsx
index 7f013538..f4d2655e 100644
--- a/src/components/pages/flock/recording/form/RecordingForm.tsx
+++ b/src/components/pages/flock/recording/form/RecordingForm.tsx
@@ -1,12 +1,12 @@
'use client';
import { useCallback, useEffect, useMemo, useState } from 'react';
-import { ChangeEvent } from 'react';
import { useFormik } from 'formik';
import { Icon } from '@iconify/react';
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 } from '@/components/input/SelectInput';
import ConfirmationModal from '@/components/modal/ConfirmationModal';
import { FormHeader } from '@/components/helper/form/FormHeader';
@@ -663,26 +663,29 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
- 0
- }
- onChange={(e) => {
- if (e.target.checked) {
- setSelectedFeed(
- formik.values.feed_data?.map(
- (_, idx) => idx
- ) ?? []
- );
- } else {
- setSelectedFeed([]);
+
+ 0
}
- }}
- />
+ onChange={(e) => {
+ if (e.target.checked) {
+ setSelectedFeed(
+ formik.values.feed_data?.map(
+ (_, idx) => idx
+ ) ?? []
+ );
+ } else {
+ setSelectedFeed([]);
+ }
+ }}
+ naked={true}
+ size='sm'
+ />
+
|
)}
Feed Name |
@@ -696,10 +699,9 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
-
-
+ {
if (e.target.checked) {
@@ -710,6 +712,8 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
);
}
}}
+ naked={true}
+ size='sm'
/>
@@ -882,26 +886,29 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
|
- 0
- }
- onChange={(e) => {
- if (e.target.checked) {
- setSelectedWeight(
- formik.values.body_weight?.map(
- (_, idx) => idx
- ) ?? []
- );
- } else {
- setSelectedWeight([]);
+
+ 0
}
- }}
- />
+ onChange={(e) => {
+ if (e.target.checked) {
+ setSelectedWeight(
+ formik.values.body_weight?.map(
+ (_, idx) => idx
+ ) ?? []
+ );
+ } else {
+ setSelectedWeight([]);
+ }
+ }}
+ naked={true}
+ size='sm'
+ />
+
|
)}
Chicken Weight |
@@ -915,10 +922,9 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
-
-
+ {
if (e.target.checked) {
@@ -929,6 +935,8 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
);
}
}}
+ naked={true}
+ size='sm'
/>
@@ -1108,26 +1116,29 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
|
- 0
- }
- onChange={(e) => {
- if (e.target.checked) {
- setSelectedVaccine(
- formik.values.vaccination?.map(
- (_, idx) => idx
- ) ?? []
- );
- } else {
- setSelectedVaccine([]);
+
+ 0
}
- }}
- />
+ onChange={(e) => {
+ if (e.target.checked) {
+ setSelectedVaccine(
+ formik.values.vaccination?.map(
+ (_, idx) => idx
+ ) ?? []
+ );
+ } else {
+ setSelectedVaccine([]);
+ }
+ }}
+ naked={true}
+ size='sm'
+ />
+
|
)}
Vaccine Name |
@@ -1141,10 +1152,9 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
-
-
+ {
if (e.target.checked) {
@@ -1158,6 +1168,8 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
);
}
}}
+ naked={true}
+ size='sm'
/>
@@ -1336,26 +1348,29 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
|
- 0
- }
- onChange={(e) => {
- if (e.target.checked) {
- setSelectedMortality(
- formik.values.mortality?.map(
- (_, idx) => idx
- ) ?? []
- );
- } else {
- setSelectedMortality([]);
+
+ 0
}
- }}
- />
+ onChange={(e) => {
+ if (e.target.checked) {
+ setSelectedMortality(
+ formik.values.mortality?.map(
+ (_, idx) => idx
+ ) ?? []
+ );
+ } else {
+ setSelectedMortality([]);
+ }
+ }}
+ naked={true}
+ size='sm'
+ />
+
|
)}
Condition |
@@ -1368,10 +1383,9 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type !== 'detail' && (
|
-
-
+ {
if (e.target.checked) {
@@ -1385,6 +1399,8 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
);
}
}}
+ naked={true}
+ size='sm'
/>
|