feat(FE): report sapronak calculation per kandang

This commit is contained in:
randy-ar
2026-01-12 13:44:03 +07:00
parent d879acc001
commit d6c6211937
5 changed files with 34 additions and 31 deletions
@@ -56,6 +56,7 @@ const ClosingDetail: React.FC<ClosingDetailProps> = ({
<ClosingSapronakCalculationTabContent
closingGeneralInformation={initialValue}
projectFlockId={id}
projectKandangId={kandangData?.id}
/>
),
},
@@ -94,7 +95,9 @@ const ClosingDetail: React.FC<ClosingDetailProps> = ({
<section className='w-full max-w-7xl pb-16'>
<header className='flex flex-col gap-4'>
<Button
href='/closing'
href={
!kandangData ? '/closing' : `/closing/detail/?closingId=${id}`
}
variant='link'
className='w-fit p-0 text-primary'
>