mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE-355): Move td classes into tr with [&_td] utilities
This commit is contained in:
@@ -766,43 +766,40 @@ const HppPerKandangTab = () => {
|
||||
(item: HppPerKandangPerWeightRange, index = 0) => (
|
||||
<tr
|
||||
key={`summary-${item.id}`}
|
||||
className='hover:bg-gray-50 transition-colors border-b border-gray-200'
|
||||
className='hover:bg-gray-50 transition-colors border-b border-gray-200 [&_td]:px-4 [&_td]:py-3 [&_td]:text-xs [&_td]:text-gray-900 [&_td]:whitespace-nowrap [&_td]:border [&_td]:border-gray-200'
|
||||
>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 whitespace-nowrap border border-gray-200'>
|
||||
{index + 1}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 whitespace-nowrap border border-gray-200'>
|
||||
ALL
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 whitespace-nowrap border border-gray-200'>
|
||||
{item.label}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 text-right whitespace-nowrap border border-gray-200'>
|
||||
<td className=''>{index + 1}</td>
|
||||
<td className=''>ALL</td>
|
||||
<td className=''>{item.label}</td>
|
||||
<td className='text-right'>
|
||||
{formatNumber(item.avg_weight_kg)}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 text-right whitespace-nowrap border border-gray-200'>
|
||||
<td className='text-right'>
|
||||
{formatNumber(item.remaining_chicken_birds)}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 text-right whitespace-nowrap border border-gray-200'>
|
||||
<td className='text-right'>
|
||||
{formatNumber(item.remaining_chicken_weight_kg)}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 whitespace-nowrap border border-gray-200'>
|
||||
<td className='text-right'>-</td>
|
||||
<td className='text-right'>-</td>
|
||||
<td className=''>
|
||||
{item.feed_suppliers
|
||||
?.map((s: Supplier) => s.alias || s.name)
|
||||
.join(' | ') || '-'}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 whitespace-nowrap border border-gray-200'>
|
||||
<td className=''>
|
||||
{item.doc_suppliers
|
||||
?.map((s: Supplier) => s.alias || s.name)
|
||||
.join(' | ') || '-'}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 text-right whitespace-nowrap border border-gray-200'>
|
||||
<td className='text-right'>
|
||||
{formatCurrency(item.average_doc_price_rp)}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 text-right whitespace-nowrap border border-gray-200'>
|
||||
<td className='text-right'>
|
||||
{formatCurrency(item.hpp_rp)}
|
||||
</td>
|
||||
<td className='px-4 py-3 text-xs text-gray-900 text-right whitespace-nowrap border border-gray-200'>
|
||||
<td className='text-right'>-</td>
|
||||
<td className='text-right'>
|
||||
{formatCurrency(item.remaining_value_rp)}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user