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" + > + +