diff --git a/src/pages/home/components/ProposalCard.tsx b/src/pages/home/components/ProposalCard.tsx index 0dcbd3a..95d873f 100644 --- a/src/pages/home/components/ProposalCard.tsx +++ b/src/pages/home/components/ProposalCard.tsx @@ -1,18 +1,33 @@ -import { Button } from '@app/components/ui/buttons' +import { useTranslation } from 'react-i18next' import { Link } from 'react-router-dom' +import { Select } from '@app/components/ui' +import { Button } from '@app/components/ui/buttons' +import { useWalletConnect } from '@app/hooks' + type Props = { title: string details: { label: string; value: string | number }[] + submitText?: string } -export default function ProposalCard({ title, details }: Props) { +export default function ProposalCard({ title, details, submitText = 'Submit' }: Props) { + const { isWalletConnected } = useWalletConnect() + const { t } = useTranslation() + return (

{title}

-
@@ -23,6 +38,24 @@ export default function ProposalCard({ title, details }: Props) { ))}
+ {isWalletConnected && ( + <> +