Update CreatorList.jsx

This commit is contained in:
susie-laptop 2025-05-22 20:55:51 -04:00
parent 166c5f5271
commit 2be18a979d

View File

@ -160,14 +160,14 @@ export default function CreatorList({ path }) {
) : ( ) : (
publicCreators.map((creator) => ( publicCreators.map((creator) => (
<tr <tr
key={creator.public_id} key={creator.creator_id}
className={selectedCreators.includes(creator.public_id) ? 'selected' : ''} className={selectedCreators.includes(creator.creator_id) ? 'selected' : ''}
> >
<td> <td>
<Form.Check <Form.Check
type='checkbox' type='checkbox'
checked={selectedCreators.includes(creator.public_id)} checked={selectedCreators.includes(creator.creator_id)}
onChange={() => handleSelectCreator(creator.public_id)} onChange={() => handleSelectCreator(creator.creator_id)}
/> />
</td> </td>
<td className='creator-cell'> <td className='creator-cell'>
@ -176,7 +176,7 @@ export default function CreatorList({ path }) {
<img src={creator.avatar} alt={creator.name} /> <img src={creator.avatar} alt={creator.name} />
{creator.status && <span className='verified-badge'></span>} {creator.status && <span className='verified-badge'></span>}
</div> </div>
<Link to={`/creator/${creator.public_id}`} className='creator-name'> <Link to={`/creator/${creator.creator_id}`} className='creator-name'>
{creator.name} {creator.name}
</Link> </Link>
</div> </div>