mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-19 17:12:58 -05:00
Make cancel match actually clickable
This commit is contained in:
parent
52abb60cca
commit
032ed41cd0
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user