+
+ e: React.ChangeEvent,
) => {
if (e.target.checked) {
setSelectedFeed([...selectedFeed, idx]);
} else {
setSelectedFeed(
- selectedFeed.filter((i) => i !== idx)
+ selectedFeed.filter((i) => i !== idx),
);
}
}}
@@ -833,11 +832,10 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
checkbox: 'checkbox checkbox-sm',
}}
/>
-
|
)}
- {
{type !== 'detail' && (
-
+
{
}
}}
classNames={{
- wrapper: 'flex justify-center',
+ wrapper: 'flex justify-center items-center h-full',
checkbox: 'checkbox checkbox-sm',
}}
/>
@@ -1067,8 +1065,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{formik.values.body_weight?.map((weight, idx) => (
{type !== 'detail' && (
-
-
+
{
}
}}
classNames={{
- wrapper: 'flex justify-center',
+ wrapper: 'flex justify-center items-center',
checkbox: 'checkbox checkbox-sm',
}}
/>
-
|
)}
@@ -1257,7 +1253,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
{type !== 'detail' && (
-
+
{
}
}}
classNames={{
- wrapper: 'flex justify-center',
+ wrapper: 'flex justify-center items-center h-full',
checkbox: 'checkbox checkbox-sm',
}}
/>
@@ -1312,19 +1308,18 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{formik.values.vaccination?.map((vaccine, idx) => (
{type !== 'detail' && (
-
-
+
+ e: React.ChangeEvent,
) => {
if (e.target.checked) {
setSelectedVaccine([...selectedVaccine, idx]);
} else {
setSelectedVaccine(
- selectedVaccine.filter((i) => i !== idx)
+ selectedVaccine.filter((i) => i !== idx),
);
}
}}
@@ -1333,11 +1328,10 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
checkbox: 'checkbox checkbox-sm',
}}
/>
-
|
)}
- {
{type !== 'detail' && (
-
+
{
}
}}
classNames={{
- wrapper: 'flex justify-center',
+ wrapper: 'flex justify-center items-center h-full',
checkbox: 'checkbox checkbox-sm',
}}
/>
@@ -1574,13 +1568,12 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{formik.values.mortality?.map((mortality, idx) => (
{type !== 'detail' && (
- |
-
+ |
+ e: React.ChangeEvent,
) => {
if (e.target.checked) {
setSelectedMortality([
@@ -1589,7 +1582,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
]);
} else {
setSelectedMortality(
- selectedMortality.filter((i) => i !== idx)
+ selectedMortality.filter((i) => i !== idx),
);
}
}}
@@ -1598,11 +1591,10 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
checkbox: 'checkbox checkbox-sm',
}}
/>
-
|
)}
- opt.value === mortality.condition
| | | | | | | |