- {column.type === "empty" && (
-
- }
- onClick={matchPlayerInputModal.onOpen}
- >
- 追加
-
- )}
+ {column.type === "empty" &&
}
{column.type === "player" && (
{column.name}
)}
@@ -167,18 +122,6 @@ export default function MatchTable({
)}
-
-
);
}
diff --git a/app/(app)/matches/[matchId]/page.tsx b/app/(app)/matches/[matchId]/page.tsx
index 3b77820..3623e2e 100644
--- a/app/(app)/matches/[matchId]/page.tsx
+++ b/app/(app)/matches/[matchId]/page.tsx
@@ -1,15 +1,17 @@
import Link from "next/link";
+import { Suspense } from "react";
import { Button } from "~/components/Button";
import { Icon } from "~/components/Icon";
import { serverServices } from "~/lib/services/server";
-import MatchTable from "./MatchTable";
+import { MatchPlayerInputModal } from "./MatchPlayerInputModal";
+import { MatchTable } from "./MatchTable";
export default async function Match({
params: { matchId },
}: {
params: { matchId: string };
}) {
- const { getMatch, getGames } = serverServices();
+ const { getGames, getMatch } = serverServices();
const [match, games] = await Promise.all([
getMatch({ matchId }),
getGames({ matchId }),
@@ -17,15 +19,24 @@ export default async function Match({
return (