From 29c0acf3b2b2aab0900393daf2b20b13a96c99e8 Mon Sep 17 00:00:00 2001
From: Quaternions <krakow20@gmail.com>
Date: Thu, 3 Apr 2025 15:47:44 -0700
Subject: [PATCH] web: add fix map button

---
 web/src/app/maps/[mapId]/page.tsx | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/web/src/app/maps/[mapId]/page.tsx b/web/src/app/maps/[mapId]/page.tsx
index 2b49117..0e7344c 100644
--- a/web/src/app/maps/[mapId]/page.tsx
+++ b/web/src/app/maps/[mapId]/page.tsx
@@ -2,13 +2,27 @@
 
 import Webpage from "@/app/_components/webpage";
 import { useParams } from "next/navigation";
+import Link from "next/link";
+
+interface Button {
+	name: string,
+	href: string,
+}
+function Button(button: Button) {
+	return (
+		<Link href={button.href}>
+			<button>{button.name}</button>
+		</Link>
+	)
+}
 
 export default function Map() {
-    const { mapId } = useParams<{mapId: string}>()
+    const { mapId } = useParams()
 
     return (
         <Webpage>
             <p>map { mapId }</p>
+            <Button name="Submit A Mapfix For This Map" href={`/maps${mapId}/fix`}/>
         </Webpage>
     );
 }