feat(FE-316): Show required data count in upload area

This commit is contained in:
rstubryan
2025-12-29 17:52:26 +07:00
parent 6ad1a3349b
commit be0bdcd299
2 changed files with 4 additions and 1 deletions
@@ -575,7 +575,9 @@ const UniformityForm = ({
Drag file to this area to upload
</span>
<span className='text-xs font-light text-[#18181B80] text-center max-w-xs px-4'>
Upload data file (*.xlsx)
{projectFlockKandangLookup?.available_quantity
? `Jumlah data yang dibutuhkan: ${projectFlockKandangLookup.available_quantity.toLocaleString('id-ID')} (2% dari total populasi).`
: 'Upload data file (*.xlsx)'}
</span>
</div>
+1
View File
@@ -68,6 +68,7 @@ export type ProjectFlockKandangLookup = {
kandang: Kandang;
project_flock: ProjectFlock;
quantity: number;
available_quantity?: number;
};
export type ProjectFlockAvailableQuantity = {