refactor(FE-239-238): Refactor UI & API Integration For Form Chickin & Chickin Details

This commit is contained in:
randy-ar
2025-11-10 06:07:02 +07:00
parent e0c347c3d5
commit 9f4f140018
10 changed files with 122 additions and 288 deletions
@@ -573,7 +573,7 @@ const ProjectFlockTable = () => {
<ConfirmationModal
ref={confirmModal.ref}
type='success'
text={`Apakah anda yakin ingin reject data transfer ke laying ini (${selectedRowIds.length} data)?`}
text={`Apakah anda yakin ingin approve data Project Flock ini (${selectedRowIds.length} data)?`}
secondaryButton={{
text: 'Tidak',
}}
@@ -284,8 +284,8 @@ const ProjectFlockChickinDetail = ({
) {
case 'DISETUJUI':
return 'green';
case 'DITOLAK':
return 'red';
case 'PENGAJUAN':
return 'yellow';
default:
return 'gray';
}
@@ -688,7 +688,6 @@ const ProjectFlockForm = ({
</div>
)}
</div>
{JSON.stringify(formik.errors)}
</form>
{formType != 'add' && (
<div className='flex flex-row gap-2 mb-6'>