diff --git a/app/routes/events-team.tsx b/app/routes/events-team.tsx index cf22655..3d72c74 100644 --- a/app/routes/events-team.tsx +++ b/app/routes/events-team.tsx @@ -102,11 +102,6 @@ export default function () { onClose: closeComplete, onOpen: openComplete, } = useDisclosure(); - const { - isOpen: isAnsweredOpen, - onClose: closeAnswered, - onOpen: openAnswered, - } = useDisclosure(); const { isOpen: isForgottenOpen, onClose: onForgottenClose, @@ -212,35 +207,6 @@ export default function () { setSelectedEvent(""); } - async function markAnswered(eventId: string) { - const answerResp = await fetch(`/api/events-team/events/${eventId}/solve`, { - body: "{}", - headers: { - "content-type": "application/json", - }, - method: "POST", - }); - - closeAnswered(); - - if (!answerResp.ok) { - toast({ - description: "Failed to mark as solved", - status: "error", - title: "Oops", - }); - - return; - } - - const newEventData = eventData; - newEventData[eventData.findIndex((e) => e.id === eventId)].answered_at = - Date.now(); - - setEventData([...newEventData]); - setSelectedEvent(""); - } - async function markComplete(eventId: string) { const completeResp = await fetch( `/api/events-team/events/${eventId}/complete`, @@ -446,26 +412,6 @@ export default function () { - - - - Mark as Solved - - - Are you sure you want to mark this riddle as solved? - - - - - - - @@ -676,22 +622,6 @@ export default function () { ) : null} {can_approve && - !event.pending && - event.approved && - event.performed_at && - event.type === "rotw" && - !event.answered_at ? ( - - ) : null} - {can_approve && event.approved && event.type === "gamenight" && event.performed_at &&