diff --git a/packages/kcmsf/src/pages/matchList.tsx b/packages/kcmsf/src/pages/matchList.tsx index 2d3cb905..47bae46f 100644 --- a/packages/kcmsf/src/pages/matchList.tsx +++ b/packages/kcmsf/src/pages/matchList.tsx @@ -4,6 +4,7 @@ import { Flex, List, Loader, + Stack, Table, Text, Title, @@ -111,17 +112,8 @@ export const MatchList = () => { }, []); // eslint-disable-line react-hooks/exhaustive-deps return ( - - - 試合表 - + + 試合表 { generate={async () => { await Promise.all( config.departmentTypes.map((departmentType) => - generateMatch("pre", departmentType) + generateMatch(matchType, departmentType) ) ); fetchMatches(); }} - modalTitle="予選試合表生成確認" + modalTitle={`${config.match[matchType].name}試合表生成確認`} modalDetail={ <> 以下の試合表を生成します: {config.departmentTypes.map((departmentType) => ( - {config.match.pre.name}  + {config.match[matchType].name}  {config.department[departmentType].name} ))} } + disabled={matchType != "pre"} // TODO: 本戦試合も生成できるように /> )} - + ); };