Move Twitter button above graph per Stephen's request
This commit is contained in:
parent
571a319c10
commit
b7af65eec3
|
@ -165,8 +165,9 @@ function AbbrContractDetails(props: {
|
||||||
export function ContractDetails(props: {
|
export function ContractDetails(props: {
|
||||||
contract: Contract
|
contract: Contract
|
||||||
isCreator?: boolean
|
isCreator?: boolean
|
||||||
|
children?: any
|
||||||
}) {
|
}) {
|
||||||
const { contract, isCreator } = props
|
const { contract, isCreator, children } = props
|
||||||
const { closeTime, creatorName, creatorUsername } = contract
|
const { closeTime, creatorName, creatorUsername } = contract
|
||||||
const { truePool, createdDate, resolvedDate } = contractMetrics(contract)
|
const { truePool, createdDate, resolvedDate } = contractMetrics(contract)
|
||||||
|
|
||||||
|
@ -222,6 +223,8 @@ export function ContractDetails(props: {
|
||||||
|
|
||||||
<div className="whitespace-nowrap">{formatMoney(truePool)} pool</div>
|
<div className="whitespace-nowrap">{formatMoney(truePool)} pool</div>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
|
{children}
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
)
|
)
|
||||||
|
|
|
@ -66,7 +66,9 @@ export const ContractOverview = (props: {
|
||||||
)}
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<ContractDetails contract={contract} isCreator={isCreator} />
|
<ContractDetails contract={contract} isCreator={isCreator}>
|
||||||
|
<TweetButton className="md:hidden self-end" tweetText={tweetText} />
|
||||||
|
</ContractDetails>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
{(isBinary || resolution) && (
|
{(isBinary || resolution) && (
|
||||||
|
@ -76,6 +78,7 @@ export const ContractOverview = (props: {
|
||||||
contract={contract}
|
contract={contract}
|
||||||
large
|
large
|
||||||
/>
|
/>
|
||||||
|
<TweetButton tweetText={tweetText} />
|
||||||
</Col>
|
</Col>
|
||||||
)}
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -92,11 +95,9 @@ export const ContractOverview = (props: {
|
||||||
) : (
|
) : (
|
||||||
<FoldTagList folds={folds} />
|
<FoldTagList folds={folds} />
|
||||||
)}
|
)}
|
||||||
<TweetButton tweetText={tweetText} />
|
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Col className="mt-6 gap-4 sm:hidden">
|
<Col className="mt-6 gap-4 sm:hidden">
|
||||||
<TweetButton className="self-end" tweetText={tweetText} />
|
|
||||||
{folds.length === 0 ? (
|
{folds.length === 0 ? (
|
||||||
<TagsInput contract={contract} />
|
<TagsInput contract={contract} />
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user