mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +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) => (
|
(item: HppPerKandangPerWeightRange, index = 0) => (
|
||||||
<tr
|
<tr
|
||||||
key={`summary-${item.id}`}
|
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'>
|
<td className=''>{index + 1}</td>
|
||||||
{index + 1}
|
<td className=''>ALL</td>
|
||||||
</td>
|
<td className=''>{item.label}</td>
|
||||||
<td className='px-4 py-3 text-xs text-gray-900 whitespace-nowrap border border-gray-200'>
|
<td className='text-right'>
|
||||||
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'>
|
|
||||||
{formatNumber(item.avg_weight_kg)}
|
{formatNumber(item.avg_weight_kg)}
|
||||||
</td>
|
</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)}
|
{formatNumber(item.remaining_chicken_birds)}
|
||||||
</td>
|
</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)}
|
{formatNumber(item.remaining_chicken_weight_kg)}
|
||||||
</td>
|
</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
|
{item.feed_suppliers
|
||||||
?.map((s: Supplier) => s.alias || s.name)
|
?.map((s: Supplier) => s.alias || s.name)
|
||||||
.join(' | ') || '-'}
|
.join(' | ') || '-'}
|
||||||
</td>
|
</td>
|
||||||
<td className='px-4 py-3 text-xs text-gray-900 whitespace-nowrap border border-gray-200'>
|
<td className=''>
|
||||||
{item.doc_suppliers
|
{item.doc_suppliers
|
||||||
?.map((s: Supplier) => s.alias || s.name)
|
?.map((s: Supplier) => s.alias || s.name)
|
||||||
.join(' | ') || '-'}
|
.join(' | ') || '-'}
|
||||||
</td>
|
</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)}
|
{formatCurrency(item.average_doc_price_rp)}
|
||||||
</td>
|
</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)}
|
{formatCurrency(item.hpp_rp)}
|
||||||
</td>
|
</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)}
|
{formatCurrency(item.remaining_value_rp)}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user