Minor cleanups

This commit is contained in:
Austin Chen 2022-05-24 08:46:05 -07:00
parent 8e746ce0cb
commit 7d47a5910f
2 changed files with 2 additions and 10 deletions

View File

@ -145,9 +145,7 @@ export function BinaryResolutionOrChance(props: {
</>
) : (
<>
<div className={clsx(textColor, 'transition-all')}>
{getBinaryProbPercent(contract)}
</div>
<div className={textColor}>{getBinaryProbPercent(contract)}</div>
<div className={clsx(textColor, large ? 'text-xl' : 'text-base')}>
chance
</div>

View File

@ -12,7 +12,6 @@ import {
DPM,
Binary,
NumericContract,
FreeResponse,
FreeResponseContract,
} from 'common/contract'
import {
@ -31,18 +30,13 @@ import TriangleFillIcon from 'web/lib/icons/triangle-fill-icon'
import { Col } from '../layout/col'
import { OUTCOME_TO_COLOR } from '../outcome-label'
import { useSaveShares } from '../use-save-shares'
import {
BinaryResolutionOrChance,
NumericResolutionOrExpectation,
FreeResponseResolutionOrChance,
} from './contract-card'
export function QuickBet(props: { contract: Contract }) {
const { contract } = props
const user = useUser()
const userBets = useUserContractBets(user?.id, contract.id)
const { yesFloorShares, noFloorShares, yesShares, noShares } = useSaveShares(
const { yesFloorShares, noFloorShares } = useSaveShares(
contract as FullContract<CPMM | DPM, Binary>,
userBets
)