Move Twitter button above graph per Stephen's request

This commit is contained in:
James Grugett 2022-02-22 21:22:24 -06:00
parent 571a319c10
commit b7af65eec3
2 changed files with 8 additions and 4 deletions

View File

@ -165,8 +165,9 @@ function AbbrContractDetails(props: {
export function ContractDetails(props: {
contract: Contract
isCreator?: boolean
children?: any
}) {
const { contract, isCreator } = props
const { contract, isCreator, children } = props
const { closeTime, creatorName, creatorUsername } = contract
const { truePool, createdDate, resolvedDate } = contractMetrics(contract)
@ -222,6 +223,8 @@ export function ContractDetails(props: {
<div className="whitespace-nowrap">{formatMoney(truePool)} pool</div>
</Row>
{children}
</Row>
</Col>
)

View File

@ -66,7 +66,9 @@ export const ContractOverview = (props: {
)}
</Row>
<ContractDetails contract={contract} isCreator={isCreator} />
<ContractDetails contract={contract} isCreator={isCreator}>
<TweetButton className="md:hidden self-end" tweetText={tweetText} />
</ContractDetails>
</Col>
{(isBinary || resolution) && (
@ -76,6 +78,7 @@ export const ContractOverview = (props: {
contract={contract}
large
/>
<TweetButton tweetText={tweetText} />
</Col>
)}
</Row>
@ -92,11 +95,9 @@ export const ContractOverview = (props: {
) : (
<FoldTagList folds={folds} />
)}
<TweetButton tweetText={tweetText} />
</Row>
<Col className="mt-6 gap-4 sm:hidden">
<TweetButton className="self-end" tweetText={tweetText} />
{folds.length === 0 ? (
<TagsInput contract={contract} />
) : (