No gray background for add answer & resolve panel. Tweak spacing

This commit is contained in:
James Grugett 2022-04-16 17:52:55 -05:00
parent f12511f22c
commit 22dd206f12
4 changed files with 13 additions and 16 deletions

View File

@ -71,7 +71,7 @@ export function AnswerResolvePanel(props: {
: 'btn-disabled'
return (
<Col className="gap-4 rounded bg-gray-50 p-4">
<Col className="gap-4 rounded">
<div>Resolve your market</div>
<Col className="gap-4 sm:flex-row sm:items-center">
<ChooseCancelSelector

View File

@ -10,6 +10,7 @@ import { tradingAllowed } from '../../lib/firebase/contracts'
import { AnswerItem } from './answer-item'
import { CreateAnswerPanel } from './create-answer-panel'
import { AnswerResolvePanel } from './answer-resolve-panel'
import { Spacer } from '../layout/spacer'
export function AnswersPanel(props: {
contract: FullContract<DPM, FreeResponse>
@ -105,12 +106,15 @@ export function AnswersPanel(props: {
)}
{user?.id === creatorId && !resolution && (
<AnswerResolvePanel
contract={contract}
resolveOption={resolveOption}
setResolveOption={setResolveOption}
chosenAnswers={chosenAnswers}
/>
<>
<Spacer h={2} />
<AnswerResolvePanel
contract={contract}
resolveOption={resolveOption}
setResolveOption={setResolveOption}
chosenAnswers={chosenAnswers}
/>
</>
)}
</Col>
)

View File

@ -75,7 +75,7 @@ export function CreateAnswerPanel(props: {
const currentReturnPercent = (currentReturn * 100).toFixed() + '%'
return (
<Col className="gap-4 rounded bg-gray-50 p-4">
<Col className="gap-4 rounded">
<Col className="flex-1 gap-2">
<div className="mb-1">Add your answer</div>
<Textarea

View File

@ -18,10 +18,9 @@ export const ContractOverview = (props: {
contract: Contract
bets: Bet[]
comments: Comment[]
children?: any
className?: string
}) => {
const { contract, bets, comments, children, className } = props
const { contract, bets, comments, className } = props
const { question, resolution, creatorId, outcomeType } = contract
const user = useUser()
@ -80,12 +79,6 @@ export const ContractOverview = (props: {
contract={contract}
isCreator={isCreator}
/>
<Spacer h={4} />
{children}
<Spacer h={4} />
</Col>
)
}