From 7a89a29fc730875218d449203f35320e44773e17 Mon Sep 17 00:00:00 2001 From: YoniKiriaty Date: Wed, 18 Feb 2026 17:31:22 +0200 Subject: [PATCH] Yoni - finished edit mode --- .../frontend/src/scouter/pages/ScoutedMatches.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/scouting/frontend/src/scouter/pages/ScoutedMatches.tsx b/apps/scouting/frontend/src/scouter/pages/ScoutedMatches.tsx index 91a0acb..5cd2c98 100644 --- a/apps/scouting/frontend/src/scouter/pages/ScoutedMatches.tsx +++ b/apps/scouting/frontend/src/scouter/pages/ScoutedMatches.tsx @@ -7,10 +7,12 @@ import { serialize } from "@repo/serde"; import { LuQrCode } from "react-icons/lu"; import { MdFileUpload } from "react-icons/md"; import { IoIosRemoveCircle } from "react-icons/io"; +import { CiEdit } from "react-icons/ci"; import { AiOutlineLoading3Quarters } from "react-icons/ai"; import { isEmpty } from "@repo/array-functions"; import { useNavigate } from "react-router-dom"; import { ConfirmDeletePopup } from "../components/ConfirmDeletePopup"; +import { createNewScoutingForm } from "./ScoutMatch"; const ICON_SIZE_PIXELS = 20; @@ -24,6 +26,8 @@ export const ScoutedMatches: FC = () => { "scouted_forms", [], ); + const [_currentlyScoutingMatch, setCurrentlyScoutingMatch] = + useLocalStorage("form", createNewScoutingForm()); const [selectedMatch, setSelectedMatch] = useState(); const [isLoading, setIsLoading] = useState(false); const [deletedMatchIndex, setDeletedMatch] = useState(); @@ -144,6 +148,16 @@ export const ScoutedMatches: FC = () => { > +
{ + setCurrentlyScoutingMatch(match); + removeMatch(index); + void navigate("/scout"); + }} + className="bg-orange-500 p-2 rounded-2xl mx-2" + > + +