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>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody className="bg-white divide-y divide-gray-200">
|
<tbody className="bg-white divide-y divide-gray-200">
|
||||||
{tenders.map((t) => (
|
{tenders.map((tender) => (
|
||||||
<tr key={t.id} className="hover:bg-gray-50">
|
<tr key={tender.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 font-medium text-gray-900">{tender.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-900">{tender.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">{tender.issuingBodyName}</td>
|
||||||
<td className="px-4 py-3 text-sm text-gray-600">{t.closingDate?.split('T')[0]}</td>
|
<td className="px-4 py-3 text-sm text-gray-600">{tender.closingDate?.split('T')[0]}</td>
|
||||||
<td className="px-4 py-3">
|
<td className="px-4 py-3">
|
||||||
<span className={`px-2 py-1 text-xs rounded-full ${
|
<span className={`px-2 py-1 text-xs rounded-full ${
|
||||||
t.status === 'ACTIVE' ? 'bg-green-100 text-green-800' :
|
tender.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 === 'CONVERTED_TO_DEAL' ? 'bg-blue-100 text-blue-800' : 'bg-gray-100 text-gray-800'
|
||||||
}`}>
|
}`}>
|
||||||
{t.status}
|
{tender.status}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-4 py-3 text-right">
|
<td className="px-4 py-3 text-right">
|
||||||
<Link
|
<Link
|
||||||
href={`/tenders/${t.id}`}
|
href={`/tenders/${tender.id}`}
|
||||||
className="inline-flex items-center gap-1 text-indigo-600 hover:underline"
|
className="inline-flex items-center gap-1 text-indigo-600 hover:underline"
|
||||||
>
|
>
|
||||||
<Eye className="h-4 w-4" />
|
<Eye className="h-4 w-4" />
|
||||||
|
|||||||
Reference in New Issue
Block a user