mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
refactor(FE): Replace Badge with StatusBadge in ProjectFlockDetail
This commit is contained in:
@@ -377,13 +377,13 @@ const ProjectFlockDetail = ({
|
||||
disabled={projectFlock?.approval?.step_number == 1}
|
||||
/>
|
||||
<div className='text-end'>
|
||||
<Badge
|
||||
className={{
|
||||
badge: 'rounded-lg',
|
||||
}}
|
||||
>
|
||||
Kapasitas {kandang?.capacity} Ekor
|
||||
</Badge>
|
||||
<StatusBadge
|
||||
color={
|
||||
kandang?.status === 'NON_ACTIVE' ? 'error' : 'success'
|
||||
}
|
||||
text={<>Kapasitas {kandang?.capacity} Ekor</>}
|
||||
className={{ badge: 'w-fit text-nowrap' }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user