Commit c22503bb authored by Hayden Adams's avatar Hayden Adams

small changes

parent 6c6aff7c
...@@ -4,14 +4,14 @@ function HelperMessages(props) { ...@@ -4,14 +4,14 @@ function HelperMessages(props) {
let message = '' let message = ''
switch (props.interaction) { switch (props.interaction) {
case 'connected': case 'connected':
message = "Nice! You're connected. Enter a value below to get started." message = "Nice! You're connected. Enter an input value below to get started."
break; break;
case 'input': case 'input':
message = "You're swapping " + props.inputToken.value + " for " + props.outputToken.value + ". Want to know more about how the prices are determined?" message = "You're swapping " + props.inputToken.value + " for " + props.outputToken.value + ". Want to know more about how the prices are determined?"
// message = "Oops, looks like this address doesn't have a enough " + props.inputToken.value + " to make this trade. Add more funds to make this swap." // message = "Oops, looks like this address doesn't have a enough " + props.inputToken.value + " to make this trade. Add more funds to make this swap."
break; break;
case 'error1': case 'error1':
message = "You can't swap a token for itself!" message = "You can't swap a token for itself! 😂"
// message = "Oops, looks like this address doesn't have a enough " + props.inputToken.value + " to make this trade. Add more funds to make this swap." // message = "Oops, looks like this address doesn't have a enough " + props.inputToken.value + " to make this trade. Add more funds to make this swap."
break; break;
default: default:
......
...@@ -5,7 +5,7 @@ function NetworkStatus(props) { ...@@ -5,7 +5,7 @@ function NetworkStatus(props) {
if (isConnected){ if (isConnected){
return ( return (
<div className="connection border pa2"> <div className="connection border pa2">
<a href={'https://rinkeby.etherscan.io/search?q=' + props.address}>{props.address}</a> <a href={'https://rinkeby.etherscan.io/search?q=' + props.address} target="_blank">{props.address}</a>
<p></p> <p></p>
</div> </div>
) )
......
...@@ -12,7 +12,7 @@ class SelectToken extends Component { ...@@ -12,7 +12,7 @@ class SelectToken extends Component {
handleChange = (selectedOption) => { handleChange = (selectedOption) => {
this.setState({ selectedOption }) this.setState({ selectedOption })
this.props.onSelectToken(selectedOption, this.props.type) this.props.onSelectToken(selectedOption, this.props.type)
console.log(`Selected: ${selectedOption.label}`) // console.log(`Selected: ${selectedOption.label}`)
} }
render () { render () {
const { selectedOption } = this.state const { selectedOption } = this.state
......
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