diff --git a/web/src/app/submissions/[submissionId]/_map.tsx b/web/src/app/submissions/[submissionId]/_map.tsx index 425e630..e364f70 100644 --- a/web/src/app/submissions/[submissionId]/_map.tsx +++ b/web/src/app/submissions/[submissionId]/_map.tsx @@ -1,24 +1,11 @@ -"use client" - -import { useState, useEffect } from "react" import { SubmissionInfo } from "@/app/ts/Submission" -import { AssetImage } from "@/app/ts/Roblox" -import Image from "next/image" interface AssetID { id: SubmissionInfo["AssetID"] } -function MapImage(asset: AssetID) { - const [assetImage, setAssetImage] = useState(""); - - useEffect(() => { - AssetImage(asset.id, "420x420").then(image => setAssetImage(image)) - }, [asset.id]); - if (!assetImage) { - return

Fetching map image...

; - } - return Map Image +function MapImage() { + return

Fetching map image...

} export { diff --git a/web/src/app/submissions/[submissionId]/_reviewButtons.tsx b/web/src/app/submissions/[submissionId]/_reviewButtons.tsx index d98162a..ae66adc 100644 --- a/web/src/app/submissions/[submissionId]/_reviewButtons.tsx +++ b/web/src/app/submissions/[submissionId]/_reviewButtons.tsx @@ -9,7 +9,7 @@ interface ReviewButton { } function ReviewButtonClicked(action: Action) { - const post = fetch(`http://localhost:3000/v1/submissions/1/status/${action}`, { + fetch(`http://localhost:3000/v1/submissions/1/status/${action}`, { method: "POST", headers: { "Content-type": "application/json", diff --git a/web/src/app/submissions/[submissionId]/page.tsx b/web/src/app/submissions/[submissionId]/page.tsx index e270d77..8f52fd6 100644 --- a/web/src/app/submissions/[submissionId]/page.tsx +++ b/web/src/app/submissions/[submissionId]/page.tsx @@ -2,7 +2,7 @@ import { SubmissionStatus, SubmissionStatusToString } from "@/app/ts/Submission"; import type { CreatorAndReviewStatus } from "./_comments"; -import { MapImage, type AssetID } from "./_map"; +import { MapImage } from "./_map"; import { useParams } from "next/navigation"; import ReviewButtons from "./_reviewButtons"; import { Rating } from "@mui/material"; @@ -34,11 +34,11 @@ function Ratings() { ) } -function RatingArea(asset: AssetID) { +function RatingArea() { return (