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