Skip to content
Snippets Groups Projects
Commit 85da1a70 authored by Jonas's avatar Jonas
Browse files

10.11.23 add tournament component #7

parent 976148c7
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,6 @@ export default function Tournament() {
}
function Bracket({value, highlight, onScoreChange, index}) {
if (highlight) {
document.getElementById('bracketWrapper').style.border = "3px solid black"
}
return <div id="bracketWrapper" style={{display: "flex",flexDirection:"row" ,padding: "10px", border: "1px solid black", width: "fit-content"}}>
<div id="teamNameWrapper" style={{display: "flex", flexDirection: "column"}}>
<label htmlFor="teamName" style={{fontSize: "8pt"}}>teamname</label>
......@@ -61,7 +58,7 @@ function Bracket({value, highlight, onScoreChange, index}) {
</div>
<div id="scoreWrapper" style={{display: "flex", flexDirection: "column", marginLeft: "10px"}}>
<label htmlFor={"score"+index} style={{fontSize: "8pt"}}>score</label>
<input id={"score"+index} type="number" style={{width: "35px"}} value={value} onChange={() => onScoreChange(document.querySelector(`#score${index}`).value, index)}/>
<input id={"score"+index} type="number" min={0} style={{width: "35px"}} value={value} onChange={() => onScoreChange(document.querySelector(`#score${index}`).value, index)}/>
</div>
</div>
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment