diff --git a/web/pages/make-predictions.tsx b/web/pages/make-predictions.tsx index 6017705f..85f3dbfa 100644 --- a/web/pages/make-predictions.tsx +++ b/web/pages/make-predictions.tsx @@ -2,6 +2,7 @@ import clsx from 'clsx' import dayjs from 'dayjs' import Link from 'next/link' import { useState } from 'react' +import { parseTags, parseWordsAsTags } from '../../common/util/parse' import { AmountInput } from '../components/amount-input' import { InfoTooltip } from '../components/info-tooltip' @@ -100,6 +101,7 @@ export default function MakePredictions() { const user = useUser() const [predictionsString, setPredictionsString] = useState('') const [description, setDescription] = useState('') + const [tags, setTags] = useState('') const [isSubmitting, setIsSubmitting] = useState(false) const [createdContracts, setCreatedContracts] = useState([]) @@ -151,6 +153,7 @@ ${TEST_VALUE} initialProb: prediction.initialProb, ante, closeTime, + tags: parseWordsAsTags(tags), }).then((r) => (r.data as any).contract) setCreatedContracts((prev) => [...prev, contract]) @@ -191,13 +194,27 @@ ${TEST_VALUE} setDescription(e.target.value || '')} /> +
+ + + setTags(e.target.value || '')} + /> +
+