add numbers to stats list
This commit is contained in:
@ -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">
|
||||
|
Reference in New Issue
Block a user