From cb0409ccf153a9a1bbfa27cbcdd1c2a65df3a51e Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sun, 9 Jan 2022 12:06:20 +0200 Subject: [PATCH] Bring back undo score button --- .../tournament/DuringMatchActions.tsx | 44 ++++++++----------- app/styles/global.css | 1 + app/styles/tournament-bracket.css | 18 ++++++++ 3 files changed, 37 insertions(+), 26 deletions(-) diff --git a/app/components/tournament/DuringMatchActions.tsx b/app/components/tournament/DuringMatchActions.tsx index a00f53fa0..a26b93414 100644 --- a/app/components/tournament/DuringMatchActions.tsx +++ b/app/components/tournament/DuringMatchActions.tsx @@ -1,4 +1,4 @@ -import { useMatches } from "remix"; +import { Form, useMatches } from "remix"; import invariant from "tiny-invariant"; import { modesShortToLong } from "~/constants"; import { resolveHostInfo } from "~/core/tournament/utils"; @@ -7,6 +7,7 @@ import type { FindTournamentByNameForUrlI, } from "~/services/tournament"; import { modeToImageUrl, Unpacked } from "~/utils"; +import { SubmitButton } from "../SubmitButton"; import { ActionSectionWrapper } from "./ActionSectionWrapper"; import { DuringMatchActionsRosters } from "./DuringMatchActionsRosters"; @@ -70,37 +71,28 @@ export function DuringMatchActions({

Stage {currentPosition}

+ {currentPosition > 1 && ( +
+ + + +
+ + Undo last score + +
+
+ )}
{roundInfos.map((info) => (
{info}
))}
- {/* -
-
- - - -
- {roundInfo.map(([title, value]) => ( - - -
- {value} -
-
- ))} -
-
-
-
*/}