Move answer panel back up

This commit is contained in:
James Grugett 2022-04-18 01:42:44 -05:00
parent 20ccc32627
commit 2a331a3916
2 changed files with 10 additions and 10 deletions

View File

@ -98,7 +98,7 @@ export function AnswersPanel(props: {
))} ))}
{sortedAnswers.length === 0 && ( {sortedAnswers.length === 0 && (
<div className="p-4 text-gray-500">No answers yet...</div> <div className="pb-4 text-gray-500">No answers yet...</div>
)} )}
{tradingAllowed(contract) && !resolveOption && ( {tradingAllowed(contract) && !resolveOption && (

View File

@ -145,6 +145,15 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
comments={comments ?? []} comments={comments ?? []}
/> />
{contract.outcomeType === 'FREE_RESPONSE' && (
<>
<Spacer h={4} />
<AnswersPanel
contract={contract as FullContract<DPM, FreeResponse>}
/>
</>
)}
{contract.isResolved && ( {contract.isResolved && (
<> <>
<div className="grid grid-cols-1 sm:grid-cols-2"> <div className="grid grid-cols-1 sm:grid-cols-2">
@ -165,15 +174,6 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
bets={bets} bets={bets}
comments={comments} comments={comments}
/> />
{contract.outcomeType === 'FREE_RESPONSE' && (
<>
<Spacer h={4} />
<AnswersPanel
contract={contract as FullContract<DPM, FreeResponse>}
/>
</>
)}
</Col> </Col>
</Page> </Page>
) )