Invert Tweet button
This commit is contained in:
parent
2937c0d891
commit
758385f044
|
@ -233,7 +233,7 @@ export function ContractDetails(props: {
|
||||||
<div className="whitespace-nowrap">{liquidityLabel}</div>
|
<div className="whitespace-nowrap">{liquidityLabel}</div>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<TweetButton className={'self-end'} tweetText={tweetText} />
|
<TweetButton className="self-end" tweetText={tweetText} />
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,18 +9,17 @@ export function TweetButton(props: { className?: string; tweetText?: string }) {
|
||||||
'btn btn-xs flex flex-row flex-nowrap border-none normal-case',
|
'btn btn-xs flex flex-row flex-nowrap border-none normal-case',
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
style={{ backgroundColor: '#1da1f2' }}
|
style={{
|
||||||
|
backgroundColor: 'white',
|
||||||
|
border: '2px solid #1da1f2',
|
||||||
|
color: '#1da1f2',
|
||||||
|
}}
|
||||||
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
||||||
tweetText ?? ''
|
tweetText ?? ''
|
||||||
)}`}
|
)}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<img
|
<img className="mr-2" src={'/twitter-logo.svg'} width={15} height={15} />
|
||||||
className="mr-2"
|
|
||||||
src={'/twitter-icon-white.svg'}
|
|
||||||
width={15}
|
|
||||||
height={15}
|
|
||||||
/>
|
|
||||||
<div>Tweet</div>
|
<div>Tweet</div>
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user