Commit f9151018 authored by Callil Capuozzo's avatar Callil Capuozzo

Better bad network message

parent 5da82f37
...@@ -8,7 +8,14 @@ function ConnectionHelper(props) { ...@@ -8,7 +8,14 @@ function ConnectionHelper(props) {
<b>To get started, please install <a href="">Metamask</a>.</b></p> <b>To get started, please install <a href="">Metamask</a>.</b></p>
</div> </div>
) )
} if (props.locked) { } else if (props.connected && props.interaction === 'disconnected') {
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't connected. <b>Please switch to the correct network.</b></p>
</div>
)
} else if (props.locked) {
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 />
......
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