Update names and paths.

This commit is contained in:
Alejandro Cabeza Romero 2025-04-23 15:32:28 +02:00
parent 5cec0498b2
commit 2feef4b21f
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
7 changed files with 14 additions and 27 deletions

View File

@ -26,7 +26,6 @@
"prop-types": "^15.7.2",
"notistack": "^1.0.10"
},
"homepage": "https://ben-haslam.github.io/Alternative-Uniswap-Interface/",
"scripts": {
"deploy": "gh-pages -d build",
"start": "react-scripts start",
@ -52,4 +51,4 @@
"last 1 safari version"
]
}
}
}

View File

@ -31,11 +31,11 @@ const App = () => {
render={(network) => (
<div>
<NarBar />
<Route exact path="/Alternative-Uniswap-Interface/">
<Route exact path="/">
<CoinSwapper network={network} />
</Route>
<Route exact path="/Alternative-Uniswap-Interface/liquidity">
<Route exact path="/liquidity">
<Liquidity network={network} />
</Route>
</div>

View File

@ -270,7 +270,7 @@ function CoinSwapper(props) {
).then((data) => setReserves(data));
}
if (coin1.address && props.network.account &&!wrongNetworkOpen) {
if (coin1.address && props.network.account && !wrongNetworkOpen) {
getBalanceAndSymbol(
props.network.account,
coin1.address,
@ -278,7 +278,7 @@ function CoinSwapper(props) {
props.network.signer,
props.network.weth.address,
props.network.coins
).then(
).then(
(data) => {
setCoin1({
...coin1,
@ -287,7 +287,7 @@ function CoinSwapper(props) {
}
);
}
if (coin2.address && props.network.account &&!wrongNetworkOpen) {
if (coin2.address && props.network.account && !wrongNetworkOpen) {
getBalanceAndSymbol(
props.network.account,
coin2.address,
@ -295,7 +295,7 @@ function CoinSwapper(props) {
props.network.signer,
props.network.weth.address,
props.network.coins
).then(
).then(
(data) => {
setCoin2({
...coin2,
@ -326,7 +326,7 @@ function CoinSwapper(props) {
/>
<WrongNetwork
open={wrongNetworkOpen}
/>
/>
{/* Coin Swapper */}
<Container maxWidth="xs">
@ -416,10 +416,6 @@ function CoinSwapper(props) {
justifyContent="center"
alignItems="flex-end"
>
<p>
Alternative Uniswap Interface | Get AUT for use in the bakerloo testnet{" "}
<a href="https://faucet.bakerloo.autonity.network/">here</a>
</p>
</Grid>
</div>
);

View File

@ -49,7 +49,7 @@ function ConnectWalletPage() {
<div>
<div className="Title">
<h1 className="navbar-logo">
Alternative Uniswap Interface
Nomiswap
</h1>
</div>
@ -73,10 +73,6 @@ function ConnectWalletPage() {
justifyContent="center"
alignItems="flex-end"
>
<p>
Alternative Uniswap Interface | Get AUT for use in the bakerloo testnet{" "}
<a href="https://faucet.bakerloo.autonity.network/">here</a>
</p>
</Grid>
</div>
);

View File

@ -38,9 +38,9 @@ function Liquidity(props) {
const deploy_or_remove = (deploy) => {
if (deploy === true) {
return <LiquidityDeployer network={props.network}/>;
return <LiquidityDeployer network={props.network} />;
}
return <LiquidityRemover network={props.network}/>;
return <LiquidityRemover network={props.network} />;
};
return (
@ -62,10 +62,6 @@ function Liquidity(props) {
justifyContent="center"
alignItems="flex-end"
>
<p>
Alternative Uniswap Interface | Get AUT for use in the bakerloo testnet{" "}
<a href="https://faucet.bakerloo.autonity.network/">here</a>
</p>
</Grid>
</div>
);

View File

@ -1,12 +1,12 @@
export const MenuItems = [
{
title: "Swap",
url: "/Alternative-Uniswap-Interface/",
url: "/",
cName: "nav-links",
},
{
title: "Liquidity",
url: "/Alternative-Uniswap-Interface/liquidity",
url: "/liquidity",
cName: "nav-links",
},
];

View File

@ -11,7 +11,7 @@ class NavBar extends Component {
<nav>
<div className="Title">
<h1 className="navbar-logo">
Alternative Uniswap Interface
Nomiswap
</h1>
</div>