Skip to content

Commit c6a7da3

Browse files
committed
feat: Match ID in modal
1 parent ff436cf commit c6a7da3

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/actions/admin/adminAddMatchActions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export async function addMatchAction(formData: AddMachSchemaType) {
2323
},
2424
body: {
2525
startDate: formData.dataTimeStart,
26+
matchId: formData.matchId,
2627
commentatorIds: formData.commentatorIds,
2728
refereeIds: formData.refereeIds,
2829
streamerIds: formData.streamerIds,

src/app/(main-page)/(withAuth)/dashboard/[tournamentAbbreviation]/matches/MatchesModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export const MatchesModal = ({
153153
type={"hidden"}
154154
required={true}
155155
/>
156+
<Input label={"Match ID"} name={"matchId"} required={true} />
156157
<Input
157158
name={"dataTimeStart"}
158159
label={"Date and time start"}

src/formSchemas/addMachSchema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as zod from "zod";
22

33
export const addMatchSchema = zod.object({
44
dataTimeStart: zod.string(),
5+
matchId: zod.string(),
56
tournamentAbbreviation: zod.string(),
67
stageType: zod.string(),
78
teamBlueId: zod.string(),

0 commit comments

Comments
 (0)