Move answer panel back up
This commit is contained in:
parent
20ccc32627
commit
2a331a3916
|
@ -98,7 +98,7 @@ export function AnswersPanel(props: {
|
|||
))}
|
||||
|
||||
{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 && (
|
||||
|
|
|
@ -145,6 +145,15 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
|
|||
comments={comments ?? []}
|
||||
/>
|
||||
|
||||
{contract.outcomeType === 'FREE_RESPONSE' && (
|
||||
<>
|
||||
<Spacer h={4} />
|
||||
<AnswersPanel
|
||||
contract={contract as FullContract<DPM, FreeResponse>}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
{contract.isResolved && (
|
||||
<>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2">
|
||||
|
@ -165,15 +174,6 @@ export function ContractPageContent(props: FirstArgument<typeof ContractPage>) {
|
|||
bets={bets}
|
||||
comments={comments}
|
||||
/>
|
||||
|
||||
{contract.outcomeType === 'FREE_RESPONSE' && (
|
||||
<>
|
||||
<Spacer h={4} />
|
||||
<AnswersPanel
|
||||
contract={contract as FullContract<DPM, FreeResponse>}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</Col>
|
||||
</Page>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user