rules, bracket page

This commit is contained in:
yohlo
2025-09-18 18:17:56 -05:00
parent 285a33c488
commit 602e6e3473
15 changed files with 273 additions and 24 deletions

View File

@@ -87,9 +87,9 @@ const TeamForm = ({
const form = useForm(config);
const queryClient = useQueryClient();
const { mutate: createTournament, isPending: createPending } =
const { mutate: createTeam, isPending: createPending } =
useCreateTeam();
const { mutate: updateTournament, isPending: updatePending } = useUpdateTeam(
const { mutate: updateTeam, isPending: updatePending } = useUpdateTeam(
teamId!
);
@@ -99,7 +99,7 @@ const TeamForm = ({
async (values: TeamInput) => {
const { logo, ...teamData } = values;
const mutation = isEditMode ? updateTournament : createTournament;
const mutation = isEditMode ? updateTeam : createTeam;
const errorMessage = isEditMode
? "Failed to update team"
: "Failed to create team";
@@ -156,7 +156,7 @@ const TeamForm = ({
},
});
},
[isEditMode, createTournament, updateTournament, queryClient]
[isEditMode, createTeam, updateTeam, queryClient]
);
return (