From 8d357ec249f91ed0d1a88c8dc55c28598ea6ac10 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 27 Jul 2025 00:03:10 -0400 Subject: [PATCH] Add report submission type radio --- app/routes/report.tsx | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/app/routes/report.tsx b/app/routes/report.tsx index 4263a92..e49cef5 100644 --- a/app/routes/report.tsx +++ b/app/routes/report.tsx @@ -9,9 +9,12 @@ import { HStack, Input, Link, + Radio, + RadioGroup, Text, Textarea, useToast, + VStack, } from "@chakra-ui/react"; import { useEffect, useState } from "react"; import { useLoaderData } from "@remix-run/react"; @@ -31,17 +34,18 @@ export async function loader({ export function meta() { return [ { - title: "Report an Exploiter - Car Crushers", + title: "Send a Report - Car Crushers", }, { name: "description", - content: "Use this page to report a cheater", + content: "Use this page to submit a report", }, ]; } export default function () { const [fileProgress, setFileProgress] = useState(0); + const [submissionType, setSubmissionType] = useState("exploiter"); const [showSuccess, setShowSuccess] = useState(false); const toast = useToast(); const [uploading, setUploading] = useState(false); @@ -132,6 +136,7 @@ export default function () { body: JSON.stringify({ description: description || undefined, files: filelist, + submissionType, turnstileResponse: logged_in ? undefined : turnstileToken, usernames, }), @@ -277,6 +282,20 @@ export default function () {
+ + Type of Report + + + Exploiter + Server Configurator Abuse + + + +
Your Evidence (Max size per file: 512MB)