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