fix: rename map callback param to avoid shadowing translation t
Made-with: Cursor
This commit is contained in:
@@ -218,23 +218,23 @@ function TendersContent() {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody className="bg-white divide-y divide-gray-200">
|
||||
{tenders.map((t) => (
|
||||
<tr key={t.id} className="hover:bg-gray-50">
|
||||
<td className="px-4 py-3 text-sm font-medium text-gray-900">{t.tenderNumber}</td>
|
||||
<td className="px-4 py-3 text-sm text-gray-900">{t.title}</td>
|
||||
<td className="px-4 py-3 text-sm text-gray-600">{t.issuingBodyName}</td>
|
||||
<td className="px-4 py-3 text-sm text-gray-600">{t.closingDate?.split('T')[0]}</td>
|
||||
{tenders.map((tender) => (
|
||||
<tr key={tender.id} className="hover:bg-gray-50">
|
||||
<td className="px-4 py-3 text-sm font-medium text-gray-900">{tender.tenderNumber}</td>
|
||||
<td className="px-4 py-3 text-sm text-gray-900">{tender.title}</td>
|
||||
<td className="px-4 py-3 text-sm text-gray-600">{tender.issuingBodyName}</td>
|
||||
<td className="px-4 py-3 text-sm text-gray-600">{tender.closingDate?.split('T')[0]}</td>
|
||||
<td className="px-4 py-3">
|
||||
<span className={`px-2 py-1 text-xs rounded-full ${
|
||||
t.status === 'ACTIVE' ? 'bg-green-100 text-green-800' :
|
||||
t.status === 'CONVERTED_TO_DEAL' ? 'bg-blue-100 text-blue-800' : 'bg-gray-100 text-gray-800'
|
||||
tender.status === 'ACTIVE' ? 'bg-green-100 text-green-800' :
|
||||
tender.status === 'CONVERTED_TO_DEAL' ? 'bg-blue-100 text-blue-800' : 'bg-gray-100 text-gray-800'
|
||||
}`}>
|
||||
{t.status}
|
||||
{tender.status}
|
||||
</span>
|
||||
</td>
|
||||
<td className="px-4 py-3 text-right">
|
||||
<Link
|
||||
href={`/tenders/${t.id}`}
|
||||
href={`/tenders/${tender.id}`}
|
||||
className="inline-flex items-center gap-1 text-indigo-600 hover:underline"
|
||||
>
|
||||
<Eye className="h-4 w-4" />
|
||||
|
||||
Reference in New Issue
Block a user