diff --git a/app/data/page.tsx b/app/data/page.tsx index a9dd2c1..8c73c27 100644 --- a/app/data/page.tsx +++ b/app/data/page.tsx @@ -35,7 +35,6 @@ export default function DataPage() { microphone: team.microphone, number: team.teamNumber, park: team.park, - pickupLocation: team.pickupLocation, notesAttempted: team.notesAttempted, trap: team.trap }); diff --git a/app/page.tsx b/app/page.tsx index 937008b..0fffb1b 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -51,7 +51,6 @@ export default function Home() { // Post Match const [defense, setDefense] = useState(false); - const [pickupLocation, setPickupLocation] = useState(PickupLocation.None); const [defenseScale, setDefenseScale] = useState(null); const [comments, setComments] = useState(""); @@ -61,8 +60,8 @@ export default function Home() { setAutoNotesAttempted(prevState => [...prevState, thisAutoNotesAttempted]); } - const updateAutoNotesCollected = (thisNotesAttempted: NoteShot) => { - setAutoNotesAttempted(prevState => [...prevState, thisNotesAttempted]) + const updateAutoNotesCollected = (thisNotesCollected: AutoNoteCollected) => { + setAutoNotesCollected(prevState => [...prevState, thisNotesCollected]) } const updateAutoPark = (thisAutoPark: boolean) => { @@ -105,10 +104,6 @@ export default function Home() { setDefense(thisDefense); } - const updatePickupLocation = (thisPickupLocation: PickupLocation) => { - setPickupLocation(thisPickupLocation); - } - const updateComments = (thisComments: string) => { setComments(thisComments); } @@ -160,7 +155,6 @@ export default function Home() { microphone: microphone, number: teamNumber, park: park, - pickupLocation: pickupLocation, notesAttempted: notesAttempted, trap: trap }); @@ -185,7 +179,6 @@ export default function Home() { microphone: microphone, number: teamNumber, park: park, - pickupLocation: pickupLocation, notesAttempted: notesAttempted, trap: trap }]} @@ -221,7 +214,6 @@ export default function Home() { setDefense(false); setDefenseScale(null); setComments(""); - setPickupLocation(PickupLocation.None); } switch (state) { @@ -272,7 +264,7 @@ export default function Home() { clear(); }}>Next Match - ) diff --git a/app/postgame.tsx b/app/postgame.tsx index e4a85fb..1db76b3 100644 --- a/app/postgame.tsx +++ b/app/postgame.tsx @@ -6,24 +6,11 @@ import {PickupLocation} from "@/components/data"; import {Textarea} from "@nextui-org/input"; // @ts-ignore -export const PostGame = ({updateDefense, updatePickupLocation, updateDefenseScale, updateComments}) => { +export const PostGame = ({updateDefense, updateDefenseScale, updateComments}) => { const [defense, setDefense] = useState(false); - const [pickupLocation, setPickupLocation] = useState(PickupLocation.None); const [defenseScale, setDefenseScale] = useState(2); const [comments, setComments] = useState(""); - // @ts-ignore - const handlePickupChange = (e) => { - setPickupLocation(e.target.value) - } - - const pickupLocationList = [ - PickupLocation.None, - PickupLocation.Floor, - PickupLocation.HumanPlayer, - PickupLocation.Both, - ] - return ( <> {setDefense(value); updateDefense(value)}}> @@ -66,21 +53,6 @@ export const PostGame = ({updateDefense, updatePickupLocation, updateDefenseScal className="max-w-md" /> - -