Minor cleanups
This commit is contained in:
parent
8e746ce0cb
commit
7d47a5910f
|
@ -145,9 +145,7 @@ export function BinaryResolutionOrChance(props: {
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<div className={clsx(textColor, 'transition-all')}>
|
<div className={textColor}>{getBinaryProbPercent(contract)}</div>
|
||||||
{getBinaryProbPercent(contract)}
|
|
||||||
</div>
|
|
||||||
<div className={clsx(textColor, large ? 'text-xl' : 'text-base')}>
|
<div className={clsx(textColor, large ? 'text-xl' : 'text-base')}>
|
||||||
chance
|
chance
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,7 +12,6 @@ import {
|
||||||
DPM,
|
DPM,
|
||||||
Binary,
|
Binary,
|
||||||
NumericContract,
|
NumericContract,
|
||||||
FreeResponse,
|
|
||||||
FreeResponseContract,
|
FreeResponseContract,
|
||||||
} from 'common/contract'
|
} from 'common/contract'
|
||||||
import {
|
import {
|
||||||
|
@ -31,18 +30,13 @@ import TriangleFillIcon from 'web/lib/icons/triangle-fill-icon'
|
||||||
import { Col } from '../layout/col'
|
import { Col } from '../layout/col'
|
||||||
import { OUTCOME_TO_COLOR } from '../outcome-label'
|
import { OUTCOME_TO_COLOR } from '../outcome-label'
|
||||||
import { useSaveShares } from '../use-save-shares'
|
import { useSaveShares } from '../use-save-shares'
|
||||||
import {
|
|
||||||
BinaryResolutionOrChance,
|
|
||||||
NumericResolutionOrExpectation,
|
|
||||||
FreeResponseResolutionOrChance,
|
|
||||||
} from './contract-card'
|
|
||||||
|
|
||||||
export function QuickBet(props: { contract: Contract }) {
|
export function QuickBet(props: { contract: Contract }) {
|
||||||
const { contract } = props
|
const { contract } = props
|
||||||
|
|
||||||
const user = useUser()
|
const user = useUser()
|
||||||
const userBets = useUserContractBets(user?.id, contract.id)
|
const userBets = useUserContractBets(user?.id, contract.id)
|
||||||
const { yesFloorShares, noFloorShares, yesShares, noShares } = useSaveShares(
|
const { yesFloorShares, noFloorShares } = useSaveShares(
|
||||||
contract as FullContract<CPMM | DPM, Binary>,
|
contract as FullContract<CPMM | DPM, Binary>,
|
||||||
userBets
|
userBets
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user