Lookslikeyouaren't connected. <b>Please switch to the correct network.</b></p>
</div>
)
} else if (props.locked) {
} else if (props.web3Store.metamaskLocked) {
return (
<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 />
Looks like you aren'tconnected.<b>PleaseunlockMetamasktocontinue.</b></p>
</div>
)
}elseif(props.interaction==="error1"){
}elseif(props.web3Store.interaction==="error1"){
return(
<divclassName="grey-bg connection border pa2">
<p>Youcan't swap a token for itself! <span role="img" aria-label="Crying">😂</span></p>
</div>
)
} else if (props.interaction === "submitted") {
} else if (props.web3Store.interaction === "submitted") {
return (
<div className="grey-bg connection border pa2">
<p>{"Transaction submitted! Click on the transaction hash below to check its status?"}</p>
@@ -63,7 +64,7 @@ function ConnectionHelper(props) {
<aclassName="f-a"onClick={()=>props.onCloseHelper()}>I've added the token</a>
</div>
)
} else if (!props.swapAdded && props.outputToken.value === "SWAP") {
} else if (!props.swapAdded && props.exchange.outputToken.value === "SWAP") {
return (
<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 />
...
...
@@ -72,10 +73,10 @@ function ConnectionHelper(props) {
<b>{"I want to swap "+this.props.exchange.inputValue+""+this.props.exchange.inputToken.value+" for "+this.props.exchange.outputValue/10**18+""+this.props.exchange.outputToken.value}</b>