mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-29 22:58:18 -05:00
Route structure for Match Modal
This commit is contained in:
@@ -33,7 +33,10 @@ export function EliminationBracketMatch({
|
||||
|
||||
if (hasBothParticipants)
|
||||
return (
|
||||
<Link className="tournament-bracket__match__link" to="/">
|
||||
<Link
|
||||
className="tournament-bracket__match__link"
|
||||
to={`match/${match.id}`}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { LinksFunction, LoaderFunction } from "remix";
|
||||
import { LinksFunction, LoaderFunction, Outlet } from "remix";
|
||||
import { ActionFunction, json, useMatches } from "remix";
|
||||
import invariant from "tiny-invariant";
|
||||
import { z } from "zod";
|
||||
@@ -133,6 +133,7 @@ export default function BracketTabWrapper() {
|
||||
|
||||
return (
|
||||
<div className="tournament-bracket__container">
|
||||
<Outlet />
|
||||
<BracketActions data={data} />
|
||||
<EliminationBracket
|
||||
rounds={data.rounds.filter((round) => round.side === "winners")}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function MatchModal() {
|
||||
return <div>helou</div>;
|
||||
}
|
||||
Reference in New Issue
Block a user