diff --git a/front-end/components/CommitButton/index.tsx b/front-end/components/CommitButton/index.tsx index e49f8e6..e364eb0 100644 --- a/front-end/components/CommitButton/index.tsx +++ b/front-end/components/CommitButton/index.tsx @@ -4,6 +4,8 @@ import { useAccount } from "wagmi"; import abi from "@/abi/RandomnessSource.json"; import { useEffect } from "react"; import { useCommit } from "@/lib/wagmi/useCommit"; +import { useDisclosure } from "@chakra-ui/react"; +import { BaseModal } from "../BaseModal"; interface IVotedButton { addedParticipants: AddedParticipant[]; @@ -14,7 +16,8 @@ export const CommitButton = ({ addedParticipants, randSrc }: IVotedButton) => { const { address } = useAccount(); console.log({ randSrc, abi }); - const { write, error } = useCommit({ randSrc, _commit: "asaofsdaifj" }); + const { /* write */ error } = useCommit({ randSrc, _commit: "asaofsdaifj" }); + const { onClose, onOpen, isOpen } = useDisclosure(); useEffect(() => { if (error) { @@ -32,12 +35,22 @@ export const CommitButton = ({ addedParticipants, randSrc }: IVotedButton) => { + + + {/* TODO: + Colocar um input, uma checkbox para salvar nos cookies, + // e o botão final para fazer o commit + + + */} +

teste

+
); else return
;