No gray background for add answer & resolve panel. Tweak spacing
This commit is contained in:
parent
f12511f22c
commit
22dd206f12
|
@ -71,7 +71,7 @@ export function AnswerResolvePanel(props: {
|
||||||
: 'btn-disabled'
|
: 'btn-disabled'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col className="gap-4 rounded bg-gray-50 p-4">
|
<Col className="gap-4 rounded">
|
||||||
<div>Resolve your market</div>
|
<div>Resolve your market</div>
|
||||||
<Col className="gap-4 sm:flex-row sm:items-center">
|
<Col className="gap-4 sm:flex-row sm:items-center">
|
||||||
<ChooseCancelSelector
|
<ChooseCancelSelector
|
||||||
|
|
|
@ -10,6 +10,7 @@ import { tradingAllowed } from '../../lib/firebase/contracts'
|
||||||
import { AnswerItem } from './answer-item'
|
import { AnswerItem } from './answer-item'
|
||||||
import { CreateAnswerPanel } from './create-answer-panel'
|
import { CreateAnswerPanel } from './create-answer-panel'
|
||||||
import { AnswerResolvePanel } from './answer-resolve-panel'
|
import { AnswerResolvePanel } from './answer-resolve-panel'
|
||||||
|
import { Spacer } from '../layout/spacer'
|
||||||
|
|
||||||
export function AnswersPanel(props: {
|
export function AnswersPanel(props: {
|
||||||
contract: FullContract<DPM, FreeResponse>
|
contract: FullContract<DPM, FreeResponse>
|
||||||
|
@ -105,12 +106,15 @@ export function AnswersPanel(props: {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{user?.id === creatorId && !resolution && (
|
{user?.id === creatorId && !resolution && (
|
||||||
<AnswerResolvePanel
|
<>
|
||||||
contract={contract}
|
<Spacer h={2} />
|
||||||
resolveOption={resolveOption}
|
<AnswerResolvePanel
|
||||||
setResolveOption={setResolveOption}
|
contract={contract}
|
||||||
chosenAnswers={chosenAnswers}
|
resolveOption={resolveOption}
|
||||||
/>
|
setResolveOption={setResolveOption}
|
||||||
|
chosenAnswers={chosenAnswers}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
)
|
)
|
||||||
|
|
|
@ -75,7 +75,7 @@ export function CreateAnswerPanel(props: {
|
||||||
const currentReturnPercent = (currentReturn * 100).toFixed() + '%'
|
const currentReturnPercent = (currentReturn * 100).toFixed() + '%'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col className="gap-4 rounded bg-gray-50 p-4">
|
<Col className="gap-4 rounded">
|
||||||
<Col className="flex-1 gap-2">
|
<Col className="flex-1 gap-2">
|
||||||
<div className="mb-1">Add your answer</div>
|
<div className="mb-1">Add your answer</div>
|
||||||
<Textarea
|
<Textarea
|
||||||
|
|
|
@ -18,10 +18,9 @@ export const ContractOverview = (props: {
|
||||||
contract: Contract
|
contract: Contract
|
||||||
bets: Bet[]
|
bets: Bet[]
|
||||||
comments: Comment[]
|
comments: Comment[]
|
||||||
children?: any
|
|
||||||
className?: string
|
className?: string
|
||||||
}) => {
|
}) => {
|
||||||
const { contract, bets, comments, children, className } = props
|
const { contract, bets, comments, className } = props
|
||||||
const { question, resolution, creatorId, outcomeType } = contract
|
const { question, resolution, creatorId, outcomeType } = contract
|
||||||
|
|
||||||
const user = useUser()
|
const user = useUser()
|
||||||
|
@ -80,12 +79,6 @@ export const ContractOverview = (props: {
|
||||||
contract={contract}
|
contract={contract}
|
||||||
isCreator={isCreator}
|
isCreator={isCreator}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Spacer h={4} />
|
|
||||||
|
|
||||||
{children}
|
|
||||||
|
|
||||||
<Spacer h={4} />
|
|
||||||
</Col>
|
</Col>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user