diff --git a/web/src/app/maps/[mapId]/fix/page.tsx b/web/src/app/maps/[mapId]/fix/page.tsx index e6c58f0..adac6c2 100644 --- a/web/src/app/maps/[mapId]/fix/page.tsx +++ b/web/src/app/maps/[mapId]/fix/page.tsx @@ -11,6 +11,7 @@ import "./(styles)/page.scss" interface MapfixPayload { AssetID: number; TargetAssetID: number; + Description: string; } interface IdResponse { OperationID: number; @@ -28,6 +29,7 @@ export default function MapfixInfoPage() { const payload: MapfixPayload = { AssetID: Number((formData.get("asset-id") as string) ?? "0"), TargetAssetID: Number(dynamicId.mapId), + Description: (formData.get("description") as string) ?? "unknown", // TEMPORARY! TODO: Change }; console.log(payload) @@ -70,6 +72,7 @@ export default function MapfixInfoPage() { <form onSubmit={handleSubmit}> {/* TODO: Add form data for mapfixes, such as changes they did, and any times that need to be deleted & what styles */} <TextField className="form-field" id="asset-id" name="asset-id" label="Asset ID" variant="outlined"/> + <TextField className="form-field" id="description" name="description" label="Describe the Mapfix" variant="outlined"/> <span className="spacer form-spacer"></span> <Button type="submit" variant="contained" startIcon={<SendIcon/>} sx={{ width: "400px",