add numbers to stats list

This commit is contained in:
Dobromir Popov
2024-05-03 01:41:18 +03:00
parent 9f2f7054e2
commit 17b8adbab8

View File

@ -152,13 +152,10 @@ function ContactsPage({ allPublishers }) {
</tr>
</thead>
<tbody>
{filteredPublishers.map((pub) => {
// Find the publisher in the publishers collection to access statistics
//const pub = publishers.find(publisher => publisher.id === allPub.id);
{filteredPublishers.map((pub, i) => {
return (
<tr key={pub.id}>
<td className="border-b p-4 pl-8" title={pub.lastUpdate}>{pub.firstName} {pub.lastName}</td>
<td className="border-b p-4 pl-8" title={pub.lastUpdate}>{i + 1}. {pub.firstName} {pub.lastName}</td>
{/* Display statistics if publisher is found */}
{pub ? (
<>
@ -184,7 +181,6 @@ function ContactsPage({ allPublishers }) {
) : (
<>
<td className="border-b p-4">
</td>
<td className="border-b p-4">
<div className="flex items-center justify-between">