+
+
+ {showSettings ? (
+
+ {comp?.tbaId === NotLinkedToTba && (
+ <>
+
+
+ This competition is not linked to TBA
+
+
Some features will be unavailable.
+
+
+ >
+ )}
+
Settings
+
+ {comp?.tbaId !== NotLinkedToTba && (
+
+ )}
+
-
-
-
-
-
-
+
+
+
+
+
+
- {/*
*/}
-
-
Edit comp information
-
Game: {games[comp?.gameId ?? defaultGameId].name}
-
-
- {
- setNewCompName(e.target.value);
- }}
- />
-
-
-
- {
- setNewCompTbaId(e.target.value);
- }}
- />
-
-
+
+
Edit comp information
+
Game: {games[comp?.gameId ?? defaultGameId].name}
+
+
+ {
+ setNewCompName(e.target.value);
+ }}
+ />
+
+
+
+ {
+ setNewCompTbaId(e.target.value);
+ }}
+ />
+
+
+
+
+
Manually add matches
+
+
+
+
Red
+
+ {allianceIndices.map((index) => (
+ {
+ const c = structuredClone(redAlliance);
+ c[index] = Number(e.target.value);
+ setRedAlliance(c);
+ }}
+ />
+ ))}
+
+
+
+
Blue
+
+ {allianceIndices.map((index) => (
+ {
+ const c = structuredClone(blueAlliance);
+ c[index] = Number(e.target.value);
+ setBlueAlliance(c);
+ }}
+ />
+ ))}
+
+
+
+
+ {
+ setMatchNumber(Number(e.target.value));
+ }}
+ >
+
-
-
Manually add matches
+
-
-
-
Red
-
- {
- allianceIndices.map((index) =>
- {
- const c = structuredClone(redAlliance);
- c[index] = Number(e.target.value);
- setRedAlliance(c);
- }}
- />
- )
- }
-
-
-
-
Blue
-
- {
- allianceIndices.map((index) =>
- {
- const c = structuredClone(blueAlliance);
- c[index] = Number(e.target.value);
- setBlueAlliance(c);
- }}
- />
- )
- }
-
-
-
-
- {
- setMatchNumber(Number(e.target.value));
- }}
- >
-
+
+
Manually add pit reports
-
-
-
-
Manually add pit reports
+
{
+ setTeamToAdd(Number(e.target.value));
+ }}
+ />
-
{setTeamToAdd(Number(e.target.value));}}
- />
+
-
-
- { comp?.tbaId !== NotLinkedToTba && <>
-
-
-
- Making your data publicly available helps smaller teams make informed decisions during alliance selection.
- Don't worry - no identifying information will be shared and comments will be hidden; only quantitative
- data will be shared.
This setting can be changed at any time.
-
- >}
+ {comp?.tbaId !== NotLinkedToTba && (
+ <>
+
+
+
+ Making your data publicly available helps smaller teams make
+ informed decisions during alliance selection. Don't worry
+ - no identifying information will be shared and comments will
+ be hidden; only quantitative data will be shared.
+
+ This setting can be changed at any time.
+
+ >
+ )}
-
-
-
-
-