Commit 7db3358d authored by Hayden Adams's avatar Hayden Adams Committed by GitHub

Merge pull request #229 from Uniswap/ha-dev

Ha dev
parents 44ef9445 5392c5e1
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { BrowserRouter, Redirect, Route } from 'react-router-dom';
import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom';
import MediaQuery from 'react-responsive';
import { AnimatedSwitch } from 'react-router-transition';
import { Web3Connect, startWatching, initialize } from '../ducks/web3connect';
import { setAddresses } from '../ducks/addresses';
import Header from '../components/Header';
......@@ -45,19 +44,16 @@ class App extends Component {
</MediaQuery>
<Web3Connect />
<BrowserRouter>
<AnimatedSwitch
atEnter={{ opacity: 0 }}
atLeave={{ opacity: 0 }}
atActive={{ opacity: 1 }}
className="app__switch-wrapper"
>
<Route exact path="/swap" component={Swap} />
<Route exact path="/send" component={Send} />
<Route exact path="/add-liquidity" component={Pool} />
<Route exact path="/remove-liquidity" component={Pool} />
<Route exact path="/create-exchange/:tokenAddress?" component={Pool} />
<Redirect exact from="/" to="/swap" />
</AnimatedSwitch>
<Switch>
<div className="app__wrapper">
<Route exact path="/swap" component={Swap} />
<Route exact path="/send" component={Send} />
<Route exact path="/add-liquidity" component={Pool} />
<Route exact path="/remove-liquidity" component={Pool} />
<Route exact path="/create-exchange/:tokenAddress?" component={Pool} />
<Redirect exact from="/" to="/swap" />
</div>
</Switch>
</BrowserRouter>
</div>
);
......
@import "../variables.scss";
.app {
&__switch-wrapper {
&__wrapper {
height: 100%;
position: relative;
margin: auto;
......@@ -23,4 +23,4 @@
height: 100vh;
@extend %col-nowrap;
}
}
\ No newline at end of file
......@@ -518,6 +518,7 @@ class AddLiquidity extends Component {
'header--inactive': !isConnected,
})}
/>
{
this.isNewExchange()
? (
......
......@@ -735,6 +735,7 @@ class Send extends Component {
'header--inactive': !this.props.isConnected,
})}
/>
<CurrencyInputPanel
title={t("input")}
description={lastEditedField === OUTPUT ? estimatedText : ''}
......
......@@ -703,7 +703,6 @@ class Swap extends Component {
const { inputError, outputError, isValid } = this.validate();
return (
<div className="swap">
<MediaQuery query="(max-width: 767px)">
......@@ -719,6 +718,7 @@ class Swap extends Component {
'header--inactive': !this.props.isConnected,
})}
/>
<CurrencyInputPanel
title={t("input")}
description={lastEditedField === OUTPUT ? estimatedText : ''}
......
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