Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions frontend/components/CreateProposalForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default function CreateProposalForm({ userAddress }: CreateProposalFormPr
const [description, setDescription] = useState('');
const [amount, setAmount] = useState('');
const [category, setCategory] = useState('development');
const [voteThreshold, setVoteThreshold] = useState('10');
const [amountError, setAmountError] = useState('');
const [error, setError] = useState('');
const [success, setSuccess] = useState('');
Expand Down Expand Up @@ -247,26 +246,6 @@ export default function CreateProposalForm({ userAddress }: CreateProposalFormPr
<CategoryTags selected={category} onSelect={setCategory} />
</div>

{/* Vote Threshold */}
<div>
<label htmlFor="threshold" className="block text-sm font-medium text-purple-200 mb-2">
Minimum Vote Threshold
</label>
<input
type="number"
id="threshold"
value={voteThreshold}
onChange={(e) => setVoteThreshold(e.target.value)}
min="1"
placeholder="10"
className="w-full px-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-purple-300/50 focus:outline-none focus:ring-2 focus:ring-purple-400 focus:border-transparent"
disabled={isLoading}
/>
<p className="text-xs text-purple-300 mt-1">
Minimum total votes required for execution
</p>
</div>

{/* Error Message */}
<AnimatePresence>
{error && (
Expand Down
Loading