Add player selectors for every role
This commit is contained in:
parent
1d1f3e9ea6
commit
e5dcdada77
@ -131,6 +131,33 @@ export function Bracket({userRole}:{userRole:Number}){
|
||||
],
|
||||
}
|
||||
|
||||
const fillInRoles=[
|
||||
"A1 2nd place",
|
||||
"A1 1st place",
|
||||
"B1 2nd place",
|
||||
"B1 1st place",
|
||||
"A21 Winner",
|
||||
"A22 Winner",
|
||||
"B21 Winner",
|
||||
"B22 Winner",
|
||||
"A31 Winner",
|
||||
"A32 Runner Up",
|
||||
"B32 Winner",
|
||||
"B31 Runner Up",
|
||||
"A32 Winner",
|
||||
"A31 Runner Up",
|
||||
"B31 Winner",
|
||||
"B32 Runner Up",
|
||||
"Quarterfinal 1 Winner 1",
|
||||
"Quarterfinal 1 Winner 2",
|
||||
"Quarterfinal 2 Winner 1",
|
||||
"Quarterfinal 2 Winner 2",
|
||||
"Semifinals Loser 1",
|
||||
"Semifinals Loser 2",
|
||||
"Semifinals Winner 1",
|
||||
"Semifinals Winner 2"
|
||||
]
|
||||
|
||||
return <>
|
||||
{players.length>0&&<div className="place-content-center text-center">
|
||||
<div className="text-3xl font-semibold underline mb-6">
|
||||
@ -159,6 +186,24 @@ export function Bracket({userRole}:{userRole:Number}){
|
||||
{<Pool name="3rd Place Match" userRole={userRole} matchResults={matchResults} matches={matches} players={players}></Pool>}
|
||||
{<Pool name="Finals" userRole={userRole} matchResults={matchResults} matches={matches} players={players}></Pool>}
|
||||
</div>
|
||||
{userRole>=1&&
|
||||
<div className="pt-10">
|
||||
{fillInRoles.map((role)=>{
|
||||
return <>
|
||||
<br/>
|
||||
<div className="flex">
|
||||
<div className="flex-1 font-bold text-right pr-5">{role}</div>
|
||||
<div className="flex-1 border-1"><select defaultValue={null} className="min-w-[100%]" name={role}>
|
||||
<option value={null}>(None)</option>
|
||||
{players.map((player)=>{
|
||||
return <option value={player}>{player}</option>
|
||||
})}
|
||||
</select>{}</div>
|
||||
</div>
|
||||
</>
|
||||
})}
|
||||
</div>
|
||||
}
|
||||
</div>}
|
||||
</>
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user