diff --git a/app/components/match-page/MatchActionPickBanTab.tsx b/app/components/match-page/MatchActionPickBanTab.tsx index 8bc49883c..32f1116ce 100644 --- a/app/components/match-page/MatchActionPickBanTab.tsx +++ b/app/components/match-page/MatchActionPickBanTab.tsx @@ -266,7 +266,6 @@ function ModeOnlyGrid({ ); } -// xxx: maybe we should just have a shared custom component for stage image + label function StageTile({ option, type, diff --git a/app/features/sendouq-match/components/RematchVotePanel.tsx b/app/features/sendouq-match/components/RematchVotePanel.tsx index 88c042774..2358a7e4f 100644 --- a/app/features/sendouq-match/components/RematchVotePanel.tsx +++ b/app/features/sendouq-match/components/RematchVotePanel.tsx @@ -1,9 +1,10 @@ -import { Check, Clock, X } from "lucide-react"; +import { Check, Clock, RotateCcw, X } from "lucide-react"; import { useTranslation } from "react-i18next"; -import type { FetcherWithComponents } from "react-router"; +import { type FetcherWithComponents, Link } from "react-router"; import { Avatar } from "~/components/Avatar"; import { SendouButton } from "~/components/elements/Button"; import { FormWithConfirm } from "~/components/FormWithConfirm"; +import { SENDOUQ_LOOKING_PAGE } from "~/utils/urls"; import * as RejoinVote from "../core/RejoinVote"; import styles from "./RematchVotePanel.module.css"; @@ -37,10 +38,18 @@ export function RematchVotePanel({ members.map((m) => m.id), ).length; + const voteResolved = RejoinVote.result(votes).type === "RESOLVED"; + const viewerVotedYes = + RejoinVote.userContinueStatus(votes, viewerUserId) === true; + const viewerVotedNo = + RejoinVote.userContinueStatus(votes, viewerUserId) === false; + return (