Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
solimander committed Jan 12, 2023
1 parent 18703fe commit eab119b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/nouns-webapp/src/components/VoteModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Button, FloatingLabel, FormControl, Spinner } from 'react-bootstrap';
import classes from './VoteModal.module.css';
import { useCastRefundableVote, useCastRefundableVoteWithReason, useCastVote, useCastVoteWithReason, Vote } from '../../wrappers/nounsDao';
import { ReactNode, useCallback, useEffect, useState } from 'react';
import { TransactionStatus, useEthers } from '@usedapp/core';
import { TransactionStatus } from '@usedapp/core';
import NavBarButton, { NavBarButtonStyle } from '../NavBarButton';
import clsx from 'clsx';
import { Trans } from '@lingui/macro';
Expand All @@ -19,9 +19,8 @@ interface VoteModalProps {
const POST_SUCESSFUL_VOTE_MODAL_CLOSE_TIME_MS = 3000;

const VoteModal = ({ show, onHide, proposalId, availableVotes }: VoteModalProps) => {
const { library, account } = useEthers();
const { castVote, castVoteState } = useCastVote();
const { castVoteWithReason, castVoteWithReasonState } = useCastVoteWithReason();
const { castVoteState } = useCastVote();
const { castVoteWithReasonState } = useCastVoteWithReason();
const { castRefundableVote, castRefundableVoteState } = useCastRefundableVote();
const { castRefundableVoteWithReason, castRefundableVoteWithReasonState } = useCastRefundableVoteWithReason();
const [vote, setVote] = useState<Vote>();
Expand Down

0 comments on commit eab119b

Please sign in to comment.