Probability of bet is set to market
This commit is contained in:
parent
3681d696e9
commit
8017f83735
|
@ -11,8 +11,8 @@ import { DuplicateIcon } from '@heroicons/react/outline'
|
||||||
import { createChallenge, getChallengeUrl } from 'web/lib/firebase/challenges'
|
import { createChallenge, getChallengeUrl } from 'web/lib/firebase/challenges'
|
||||||
import { Contract } from 'common/contract'
|
import { Contract } from 'common/contract'
|
||||||
import { CopyLinkButton } from 'web/components/copy-link-button'
|
import { CopyLinkButton } from 'web/components/copy-link-button'
|
||||||
import { getOutcomeProbability } from 'common/calculate'
|
|
||||||
import { SiteLink } from 'web/components/site-link'
|
import { SiteLink } from 'web/components/site-link'
|
||||||
|
import { getOutcomeProbability } from 'common/calculate'
|
||||||
|
|
||||||
type challengeInfo = {
|
type challengeInfo = {
|
||||||
amount: number
|
amount: number
|
||||||
|
@ -110,9 +110,9 @@ function CreateChallengeForm(props: {
|
||||||
setFinishedCreating(true)
|
setFinishedCreating(true)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Title className="!my-2" text="Create a challenge bet" />
|
<Title className="!mt-2" text="Create a challenge bet" />
|
||||||
<Row className="label ">You're betting</Row>
|
{/*<Row className="label ">How much?</Row>*/}
|
||||||
<div className="flex flex-col flex-wrap gap-x-5 gap-y-2">
|
<div className="mt-2 flex flex-col flex-wrap gap-x-5 gap-y-2">
|
||||||
<Row className={'form-control w-full justify-start gap-4'}>
|
<Row className={'form-control w-full justify-start gap-4'}>
|
||||||
<Col>
|
<Col>
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
|
@ -173,32 +173,32 @@ function CreateChallengeForm(props: {
|
||||||
)}
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<div className="form-control flex flex-row gap-8">
|
{/*<div className="form-control flex flex-row gap-8">*/}
|
||||||
{/*<Col className={'mt-9 justify-center'}>at</Col>*/}
|
{/* /!*<Col className={'mt-9 justify-center'}>at</Col>*!/*/}
|
||||||
<Col>
|
{/* <Col>*/}
|
||||||
<label className="label ">At</label>
|
{/* <label className="label ">At</label>*/}
|
||||||
<div className="relative">
|
{/* <div className="relative">*/}
|
||||||
<input
|
{/* <input*/}
|
||||||
className="input input-bordered max-w-[5rem]"
|
{/* className="input input-bordered max-w-[5rem]"*/}
|
||||||
type="number"
|
{/* type="number"*/}
|
||||||
min={1}
|
{/* min={1}*/}
|
||||||
max={100}
|
{/* max={100}*/}
|
||||||
value={challengeInfo.prob}
|
{/* value={challengeInfo.prob}*/}
|
||||||
onChange={(e) =>
|
{/* onChange={(e) =>*/}
|
||||||
setChallengeInfo((m: challengeInfo) => {
|
{/* setChallengeInfo((m: challengeInfo) => {*/}
|
||||||
return {
|
{/* return {*/}
|
||||||
...m,
|
{/* ...m,*/}
|
||||||
prob: parseFloat(e.target.value),
|
{/* prob: parseFloat(e.target.value),*/}
|
||||||
}
|
{/* }*/}
|
||||||
})
|
{/* })*/}
|
||||||
}
|
{/* }*/}
|
||||||
/>
|
{/* />*/}
|
||||||
<span className="absolute top-3.5 -right-5 text-sm text-gray-600">
|
{/* <span className="absolute top-3.5 -right-5 text-sm text-gray-600">*/}
|
||||||
%
|
{/* %*/}
|
||||||
</span>
|
{/* </span>*/}
|
||||||
</div>
|
{/* </div>*/}
|
||||||
</Col>
|
{/* </Col>*/}
|
||||||
</div>
|
{/*</div>*/}
|
||||||
|
|
||||||
{/*<div className="form-control w-full">*/}
|
{/*<div className="form-control w-full">*/}
|
||||||
{/* <label className="label">Message</label>*/}
|
{/* <label className="label">Message</label>*/}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user