diff --git a/packages/nextjs/components/ballot/Ballot.tsx b/packages/nextjs/components/ballot/Ballot.tsx index 4a6d316..331968f 100644 --- a/packages/nextjs/components/ballot/Ballot.tsx +++ b/packages/nextjs/components/ballot/Ballot.tsx @@ -1,25 +1,25 @@ -import React, { useState } from "react"; +import React from "react"; // import Image from "next/image"; import Link from "next/link"; import { useDarkMode } from "usehooks-ts"; import { useBallot } from "~~/context/BallotContext"; const BallotComponent: React.FC = () => { - const { state, dispatch } = useBallot(); - const [isOpen, setIsOpen] = useState(false); + const { state } = useBallot(); + // const [isOpen, setIsOpen] = useState(false); const { isDarkMode } = useDarkMode(); - const toggleBallot = () => { - setIsOpen(!isOpen); - }; + // const toggleBallot = () => { + // setIsOpen(!isOpen); + // }; - const updateAllocation = (projectId: string, newAllocation: number) => { - dispatch({ type: "UPDATE_ALLOCATION", projectId, newAllocation }); - }; + // const updateAllocation = (projectId: string, newAllocation: number) => { + // dispatch({ type: "UPDATE_ALLOCATION", projectId, newAllocation }); + // }; - const removeProject = (targetId: string) => { - dispatch({ type: "REMOVE_PROJECT", targetId }); - }; + // const removeProject = (targetId: string) => { + // dispatch({ type: "REMOVE_PROJECT", targetId }); + // }; return (