Commit c9253206 authored by Callil Capuozzo's avatar Callil Capuozzo

Add CTA on swap prompt

parent 20f4a663
...@@ -165,9 +165,12 @@ input[type=number]::-webkit-outer-spin-button { ...@@ -165,9 +165,12 @@ input[type=number]::-webkit-outer-spin-button {
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: blue; color: white;
height: 64px; height: 48px;
transition: height .3s ease; transition: height .3s ease;
background-color: #27AE60;
background-color: #2F80ED;
cursor: pointer;
} }
.expand{ .expand{
......
...@@ -665,13 +665,12 @@ class App extends Component { ...@@ -665,13 +665,12 @@ class App extends Component {
</section> </section>
{this.state.interaction === 'input' ? {this.state.interaction === 'input' ?
<section className="swap grey-bg border pa2"> <a className="swap border pa2" role="button" onClick={() => {this.purchaseTokens()}}>
<a role="button" onClick={() => {this.purchaseTokens()}}>
<b>{"I want to swap " + this.state.input + " " + this.state.inputToken.value + " for " + (this.state.output/10**18).toFixed(5) + " " + this.state.outputToken.value}</b> <b>{"I want to swap " + this.state.input + " " + this.state.inputToken.value + " for " + this.state.output/10**18 + " " + this.state.outputToken.value}</b>
</a>
{/* <button> Approve </button> */} {/* <button> Approve </button> */}
</section> </a>
: <section className="swap grey-bg hidden border pa2"></section>} : <a className="swap grey-bg hidden border pa2"></a>}
<section className="About" ref={(section) => { this.About = section; }}> <section className="About" ref={(section) => { this.About = section; }}>
<a onClick={() => {this.toggleAbout()}} className="link border pa2 f-a"> <a onClick={() => {this.toggleAbout()}} className="link border pa2 f-a">
......
...@@ -82,7 +82,7 @@ function ConnectionHelper(props) { ...@@ -82,7 +82,7 @@ function ConnectionHelper(props) {
return ( return (
<div className="grey-bg connection border pa2"> <div className="grey-bg connection border pa2">
<p>Welcome! Uniswap is a decentralized exhange platform for ERC20 Tokens. <a onClick={() => {props.toggleAbout()}} className="f-a">How it works </a><br /><br /> <p>Welcome! Uniswap is a decentralized exhange platform for ERC20 Tokens. <a onClick={() => {props.toggleAbout()}} className="f-a">How it works </a><br /><br />
Enter an input value below to get started.</p> You're connected. Enter a value below to get started.</p>
<p>↓</p> <p>↓</p>
</div> </div>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment