prettier delenda est

This commit is contained in:
mantikoros 2022-07-01 13:46:48 -04:00
parent c8bf333877
commit 7571a069d0
3 changed files with 10 additions and 5 deletions

View File

@ -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'

View File

@ -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>
}

View File

@ -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)