mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 07:06:14 -05:00
Make cancel match actually clickable
This commit is contained in:
@@ -409,21 +409,6 @@ export default function QMatchPage() {
|
||||
isResubmission={ownTeamReported}
|
||||
fetcher={submitScoreFetcher}
|
||||
/>
|
||||
{isAdmin(user) && !data.match.reportedByUserId ? (
|
||||
<FormWithConfirm
|
||||
dialogHeading={"Cancel match"}
|
||||
fields={[["_action", "CANCEL_MATCH"]]}
|
||||
>
|
||||
<Button
|
||||
className="build__small-text"
|
||||
variant="minimal-destructive"
|
||||
size="tiny"
|
||||
type="submit"
|
||||
>
|
||||
Cancel match
|
||||
</Button>
|
||||
</FormWithConfirm>
|
||||
) : null}
|
||||
{submitScoreFetcher.data?.error === "different" ? (
|
||||
<div className="text-xs text-warning font-semi-bold text-center">
|
||||
You reported different results than your opponent. Double check
|
||||
@@ -433,6 +418,21 @@ export default function QMatchPage() {
|
||||
) : null}
|
||||
</>
|
||||
) : null}
|
||||
{isAdmin(user) && !data.match.reportedByUserId ? (
|
||||
<FormWithConfirm
|
||||
dialogHeading={"Cancel match"}
|
||||
fields={[["_action", "CANCEL_MATCH"]]}
|
||||
>
|
||||
<Button
|
||||
className="build__small-text"
|
||||
variant="minimal-destructive"
|
||||
size="tiny"
|
||||
type="submit"
|
||||
>
|
||||
Cancel match
|
||||
</Button>
|
||||
</FormWithConfirm>
|
||||
) : null}
|
||||
</Main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user