- {isPseudoNumeric ? 'Estimated value' : 'Probability'}
+
+
+ {isPseudoNumeric ? 'Estimated value' : 'Probability'}
+
+ {probStayedSame ? (
+ {format(initialProb)}
+ ) : (
+
+ {format(initialProb)}
+ →
+ {format(resultProb)}
- {probStayedSame ? (
- {format(initialProb)}
- ) : (
-
- {format(initialProb)}
- →
- {format(resultProb)}
-
- )}
-
- )}
+ )}
+
@@ -389,28 +326,23 @@ function BuyPanel(props: {
)}
onClick={betDisabled ? undefined : submitBet}
>
- {isSubmitting
- ? 'Submitting...'
- : isLimitOrder
- ? 'Submit order'
- : 'Submit bet'}
+ {isSubmitting ? 'Submitting...' : 'Submit bet'}
)}
- {wasSubmitted && (
- {isLimitOrder ? 'Order' : 'Bet'} submitted!
- )}
- >
+ {wasSubmitted && Bet submitted!
}
+
)
}
-function RangeOrderPanel(props: {
+function LimitOrderPanel(props: {
contract: CPMMBinaryContract | PseudoNumericContract
user: User | null | undefined
unfilledBets: Bet[]
+ hidden: boolean
onBuySuccess?: () => void
}) {
- const { contract, user, unfilledBets, onBuySuccess } = props
+ const { contract, user, unfilledBets, hidden, onBuySuccess } = props
const initialProb = getProbability(contract)
const isPseudoNumeric = contract.outcomeType === 'PSEUDO_NUMERIC'
@@ -554,7 +486,7 @@ function RangeOrderPanel(props: {
const noReturnPercent = formatPercent(noReturn)
return (
- <>
+
Bet only when the {isPseudoNumeric ? 'value' : 'probability'} reaches
Low or High limit.
@@ -717,7 +649,7 @@ function RangeOrderPanel(props: {
)}
{wasSubmitted &&
Order submitted!
}
- >
+
)
}