prettier delenda est
This commit is contained in:
parent
c8bf333877
commit
7571a069d0
|
@ -24,7 +24,13 @@ import { Row } from './layout/row'
|
|||
import { UserLink } from './user-page'
|
||||
import { sellBet } from 'web/lib/firebase/api-call'
|
||||
import { ConfirmationButton } from './confirmation-button'
|
||||
import { OutcomeLabel, YesLabel, NoLabel, HigherLabel, LowerLabel } from './outcome-label'
|
||||
import {
|
||||
OutcomeLabel,
|
||||
YesLabel,
|
||||
NoLabel,
|
||||
HigherLabel,
|
||||
LowerLabel,
|
||||
} from './outcome-label'
|
||||
import { filterDefined } from 'common/util/array'
|
||||
import { LoadingIndicator } from './loading-indicator'
|
||||
import { SiteLink } from './site-link'
|
||||
|
|
|
@ -19,7 +19,7 @@ export function OutcomeLabel(props: {
|
|||
value?: number
|
||||
}) {
|
||||
const { outcome, contract, truncate, value } = props
|
||||
const {outcomeType} = contract
|
||||
const { outcomeType } = contract
|
||||
|
||||
if (outcomeType === 'PSEUDO_NUMERIC')
|
||||
return <PseudoNumericOutcomeLabel outcome={outcome as any} />
|
||||
|
@ -119,8 +119,6 @@ export function LowerLabel() {
|
|||
return <span className="text-red-400">LOW</span>
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function NoLabel() {
|
||||
return <span className="text-red-400">NO</span>
|
||||
}
|
||||
|
|
|
@ -148,7 +148,8 @@ export function ContractPageContent(
|
|||
const isNumeric = outcomeType === 'NUMERIC'
|
||||
const allowTrade = tradingAllowed(contract)
|
||||
const allowResolve = !isResolved && isCreator && !!user
|
||||
const hasSidePanel = (isBinary || isNumeric || isPseudoNumeric) && (allowTrade || allowResolve)
|
||||
const hasSidePanel =
|
||||
(isBinary || isNumeric || isPseudoNumeric) && (allowTrade || allowResolve)
|
||||
|
||||
const ogCardProps = getOpenGraphProps(contract)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user