From 7586c352dd55d2509f15108657285e1b6876eb8e Mon Sep 17 00:00:00 2001
From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com>
Date: Sat, 8 Jan 2022 15:29:27 +0200
Subject: [PATCH] New DuringMatchActions style
---
.../tournament/DuringMatchActions.tsx | 37 +++++++------------
app/styles/tournament-bracket.css | 35 +++++++-----------
2 files changed, 28 insertions(+), 44 deletions(-)
diff --git a/app/components/tournament/DuringMatchActions.tsx b/app/components/tournament/DuringMatchActions.tsx
index a3271fd54..fcea940ad 100644
--- a/app/components/tournament/DuringMatchActions.tsx
+++ b/app/components/tournament/DuringMatchActions.tsx
@@ -26,7 +26,9 @@ export function DuringMatchActions({
const [, parentRoute] = useMatches();
const { teams, seeds } = parentRoute.data as FindTournamentByNameForUrlI;
const [joinedRoom, setJoinedRoom] = useState(
- (currentMatch.score?.[0] ?? 0) > 0 || (currentMatch.score?.[1] ?? 0) > 0
+ true ||
+ (currentMatch.score?.[0] ?? 0) > 0 ||
+ (currentMatch.score?.[1] ?? 0) > 0
);
const opponentTeam = teams.find(
@@ -52,26 +54,10 @@ export function DuringMatchActions({
invariant(currentStage, "currentStage is undefined");
const { stage } = currentStage;
- const roundInfo: [string, React.ReactElement | string | number][] = [
- ["Opponent", opponentTeam.name],
- ["Room pass", `${roomPass} (${weHost ? "We" : "They"} host)`],
- ["Friend code to add", friendCodeToAdd],
- [
- "Score",
- <>
- {currentMatch.score?.join("-")}
- {currentPosition > 1 && (
-