diff --git a/src/components/Proposals/ProposalActions/ProposalAction.tsx b/src/components/Proposals/ProposalActions/ProposalAction.tsx index 42f372f945..1befef8f54 100644 --- a/src/components/Proposals/ProposalActions/ProposalAction.tsx +++ b/src/components/Proposals/ProposalActions/ProposalAction.tsx @@ -1,9 +1,7 @@ import { Button, Flex, Text } from '@chakra-ui/react'; -import Link from 'next/link'; import { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { BACKGROUND_SEMI_TRANSPARENT } from '../../../constants/common'; -import { DAO_ROUTES } from '../../../constants/routes'; import useSnapshotProposal from '../../../hooks/DAO/loaders/snapshot/useSnapshotProposal'; import { useFractal } from '../../../providers/App/AppProvider'; import { ExtendedSnapshotProposal, FractalProposal, FractalProposalState } from '../../../types'; @@ -52,7 +50,6 @@ export function ProposalAction({ onCastSnapshotVote?: () => Promise; }) { const { - node: { daoAddress }, readOnly: { user, dao }, } = useFractal(); const { t } = useTranslation(); @@ -102,15 +99,7 @@ export function ProposalAction({ if (!showActionButton) { if (!expandedView) { - return ( - - ); + return ; } // This means that Proposal in state where there's no action to perform return null; @@ -139,17 +128,5 @@ export function ProposalAction({ ); } - return ( - - - - ); + return ; }