Filter teams
This commit is contained in:
parent
dd479ec289
commit
c83200cd1c
3 changed files with 41 additions and 9 deletions
|
@ -6,9 +6,11 @@ export default function Team({ teams, users, selectTeam, selectUser }) {
|
|||
<ul className='list'>
|
||||
{teams.map(team => (
|
||||
<li className = 'list-item' key={team.id}>
|
||||
<button onClick={() => selectTeam(team.name)}>
|
||||
{ team.name }
|
||||
</button>
|
||||
<div>
|
||||
<button onClick={() => selectTeam(team.name)}>
|
||||
{ team.name }
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue